SOCK_RAW on PPC ?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Tom K (TomK_at_discussions.microsoft.com)
Date: 02/01/05


Date: Tue, 1 Feb 2005 07:23:03 -0800

Hi,

When I try to open a raw socket on a pocket PC I get the following error
code from the failed call to socket():

WSAESOCKTNOSUPPORT (10044)
•Translation: Socket type not supported.
•Description: The support for the specified socket type does not exist in
this address family. For example, the SOCK_RAW optional type may be selected
in a socket (Wsapiref_2qr6.asp) call but the implementation does not support
SOCK_RAW sockets at all.

The code I use to open the socket is:

rawSocket = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);

The error code suggests that raw sockets are not implemented on CE (Pocket
PC 4.20) ? Can someone confirm this? I have some code that performs an ICMP
ping and I would like to run it on CE, but it appears as if this will not be
possible.

Thanks,

Tom.



Relevant Pages

  • Re: Socket programming source, help please.
    ... If you're going to hard-code the socket type by, for example, using the IPEndPoint type, you might as well hard-code the AddressFamily value too: ... IPHostEntry ipHostEntry = Dns.GetHostEntry; ... EndPoint endPoint = new IPEndPoint ...
    (microsoft.public.dotnet.languages.csharp)
  • Programming for IPX
    ... time I attempt to open a socket with socketI get the following: ... The socket type seems to be supported. ... I'm using IPX/SPX on eth0. ... header file somewhere? ...
    (linux.redhat.misc)
  • Re: Toolpost screws
    ... In article, Peter Fairbrother writes the need to put a spanner round them, as opposed to a hex key inside the socket type, is quite decisively the other way. ... How I was misleading myself was imagining the use of a conventional spanner rather than a socket - which is surprising, as my larger set has square headed screws and a socket spanner! ...
    (uk.rec.models.engineering)
  • simple server socket question
    ... A friend is trying to open a server socket on a Win NT machine and gets ... couldn't open socket: socket type not supported ...
    (comp.lang.tcl)
  • Re: Socket recv() question?
    ... You might be doing something crazy, writing the data to the file one byte ... socket function correctly? ... The PC would send the data and Pocket PC would receive it. ... Configure tx timeout ...
    (microsoft.public.windowsce.app.development)