Full details of Winsock TCP error 10042 - WSAENOPROTOOPT:
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.