Socket
Error # 10014
Socket error (#10014): Bad address
Analyse & Solutions: The system detected an invalid pointer
address in attempting to use a pointer argument of a call. This error
occurs if an application passes an invalid pointer value, or if the length
of the buffer is too small. For instance, if the length of an argument,
which is a sockaddr structure, is smaller than the sizeof(sockaddr).
sockaddr
The sockaddr structure varies depending on the protocol selected. Except
for the sa_family parameter, sockaddr contents are expressed in network
byte order.
In Windows Sockets 2, the name parameter is not strictly interpreted as
a pointer to a sockaddr structure. It is presented in this manner for
Windows Sockets compatibility. The actual structure is interpreted differently
in the context of different address families. The only requirements are
that the first u_short is the address family and the total size of the
memory buffer in bytes is namelen.
|