Error Message:

Socket is already connected.

Explanation:

A connect request was made on an already-connected socket. Some Winsock implementations are not so strict as to require an application with a datagram socket to "disconnect" -- by calling connect() with a AF_INET NULL destination address: INADDR_ANY (0.0.0.0), and port 0 -- before redirecting datagrams with sendto() or connect(). On a datastream socket, some applications use this error with a nonblocking socket calling connect() to detect when a connection attempt has completed; this is not recommended, because some Winsock calls fail with WSAEINVAL on subsequent connect() calls.

User Action:

Developer suggestions: To make your application more portable with datagram sockets do not use connect() and sendto() on the same datagram socket in an application, and always "disconnect" before calling connect() more than once. With datastream sockets, do not call connect() more than once (use select() or WSAAsyncSelect() to detect connection completion). User suggestions: Contact the vendor of the application. They might have a software patch to fix the problem.