SOCK_RAW on CE
-
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.
-
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.
I found the answer, raw sockets are not supported but this exists:): http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcetcpip/html/cereficmpsendecho.asp