|
pure virtual |
Connect the socket with the end-point specified in pRemoteAddr.
Connecting a UDP socket is usually done on when there is one remote end-point and it has the advantage that if the server were to die, the client's send will fail thereby notifying the client that the server is gone.
Not connecting a UDP socket has the advantage of being able to handle traffic for multiple clients on a single socket, allowing the server to scale much better.
pRemoteAddr | A pointer to a P6NETADDR which contains the remote address to connect with. |
timeout | The timeout in milliseconds to wait for the connection. |