Tech Support > Microsoft Windows > Development Resources > INVALID_SOCKET (10043)
INVALID_SOCKET (10043)
Posted by Gandalf on January 8th, 2004


I've a problem when execute this
int s=socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP)

i got an error of INVALID_SOCKET due of a WSAEPROTONOSUPPORT error (10043).
Could someone explain me the cause of this error?
I'm using Windows XP Professional SP1.


Posted by David Schwartz on January 8th, 2004



"Gandalf" <gandalf@aol.com> wrote in message
news:btk95r$805ko$1@ID-205465.news.uni-berlin.de...

The SOCK_DGRAM socket type does not support the IPPROTO_ICMP protocol.
Try SOCK_RAW.

DS





Posted by Gandalf on January 9th, 2004



"David Schwartz" <davids@webmaster.com> ha scritto nel messaggio
news:btkhff$tv9$1@nntp.webmaster.com...
Is there any way to use IPPROTO_ICMP protocol unless SOCK_RAW ?



Posted by John McCabe on January 13th, 2004


On Thu, 8 Jan 2004 19:56:19 +0100, "Gandalf" <gandalf@aol.com> wrote:

Probably not the right place to ask, but you could try SOCK_RAW
instead of SOCK_DGRAM, or WSASocket() instead of socket().

Best Regards
John McCabe

To reply by email replace 'nospam' with 'assen'