Inheritance diagram for DatagramSocket:
Public Member Functions | |
DatagramSocket () | |
DatagramSocket (int port) | |
DatagramSocket (int port, InetAddress laddr) | |
~DatagramSocket () | |
void | bind (int lport, InetAddress laddress) |
void | create () |
void | close () |
void | connect (InetAddress address, int port) |
InetAddress | getInetAddress () const |
InetAddress | getLocalAddress () const |
int | getLocalPort () const |
int | getPort () const |
bool | isBound () const |
bool | isClosed () const |
bool | isConnected () const |
void | receive (DatagramPacketPtr &p) |
void | send (DatagramPacketPtr &p) |
Protected Attributes | |
int | fd |
int | localPort |
|
Constructs a datagram socket and binds it to any available port on the local host machine. |
|
Constructs a datagram socket and binds it to the specified port on the local host machine. |
|
Creates a datagram socket, bound to the specified local address. |
|
ensure the socket is closed. |
|
Binds a datagram socket to a local port and address. |
|
Closes this datagram socket |
|
Connects the socket to a remote address for this socket. |
|
Creates a datagram socket. |
|
Returns the address to which this socket is connected. |
|
Gets the local address to which the socket is bound. |
|
Returns the port number on the local host to which this socket is bound. |
|
Returns the port for this socket |
|
Returns the binding state of the socket. * |
|
Returns wether the socket is closed or not. |
|
Returns the connection state of the socket. |
|
Receives a datagram packet from this socket. |
|
Sends a datagram packet from this socket. |
|
The file descriptor object for this socket. |
|
The local port number to which this socket is connected. |