Winsock error 10042

WSAENOPROTOOPT  -  Bad protocol option.

Basic (Microsoft) information for 10042 a.k.a. WSAENOPROTOOPT

An unknown, invalid or unsupported option or level was specified in a getsockopt or setsockopt call.

Detailed (Berkeley) information for winsock 10042, described as "Bad protocol option."

Berkeley description: A bad option or level was specified in a(2) or setsockopt(2) call.

WinSock description: Same as Berkeley; the option is unknown or unsupported.

Detailed description:

SO_BROADCAST is not supported on sockets of type SOCK_STREAM.

SO_ACCEPTCONN, SO_DONTLINGER, SO_KEEPALIVE, SO_LINGER, SO_OOBINLINE and TCP_NODELAY are not supported on sockets of type SOCK_DGRAM.

SO_DEBUG, SO_DONTROUTE, SO_RCVBUF, SO_SNDBUF, TCP_NODELAY: optional socket options.

SO_ACCEPTCONN, SO_ERROR, SO_TYPE: are read-only options, so they work with, but not with

Developer suggestions: Check the parameters. Are you using an optional level or socket option that may not be supported on all WinSock implementations? If so, treat this as a non-fatal error and ignore it, if possible.

[Home] [Full list of Winsock Error codes]
[Peer Monitor - network monitoring tool] [DanielClarke.com] [Hungarian language course]