Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IUdpSocket::connect ( P6NETADDR *  pRemoteAddr,
P6INTERVAL  timeout 
)
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.

Parameters
pRemoteAddrA pointer to a P6NETADDR which contains the remote address to connect with.
timeoutThe timeout in milliseconds to wait for the connection.
Returns