Reconnecting and Disconnecting (Windows Embedded CE 6.0)

1/6/2010

The default destination may be changed by simply calling WSPConnect again, even if the socket is already connected. Any datagrams queued for receipt are discarded if the new address is different from the address specified in a previous WSPConnect.

If the address supplied is all zeroes, the socket will be disconnected — the default remote address will be indeterminate, so WSPSend and WSPRecv calls will return the error code WSAENOTCONN, although WSPSendTo and WSPRecvFrom may still be used.

See Also

Concepts

Socket Connections on Connectionless Protocols