#include <mcllib/MCSocket.h>
Inheritance diagram for MCUDPSocket:
Public Member Functions | |
MCUDPSocket (const MCNetAddr &addr) | |
Construct a UDP socket bound to a local address. | |
MCUDPSocket () | |
Construct an unbound UDP socket. |
A connection-less UDP socket is not connected to a specific remote peer. Instead each time data is sent, the peer must be identified. This is achieved using the sendTo() method.
|
Construct an unbound UDP socket. The resultant socket should be bound to a local address with the bind() method. |
|
Construct a UDP socket bound to a local address. If the socket cannot be bound to the address an exception is thrown.
|