UDP socket. More...
#include <udp_socket.h>
Public Member Functions | |
Construction | |
UDPSocket () | |
UDPSocket (const SocketName &local_name, bool force_bind=true) | |
Constructs a UDPSocket. More... | |
UDPSocket (int socket, bool close_socket) | |
Constructs a UDPSocket. More... | |
~UDPSocket () | |
Attributes | |
int | get_handle () const |
Get Handle. More... | |
SocketName | get_local_name () const |
Get Local name. More... | |
Event | get_read_event () |
Get Read event. More... | |
Event | get_write_event () |
Get Write event. More... | |
Operations | |
void | bind (const SocketName &local_name, bool force_bind=true) |
Bind. More... | |
void | set_handle (int socket, bool close_socket) |
Set handle. More... | |
int | send (const void *data, int len, const SocketName &to) |
Send. More... | |
int | receive (void *data, int len, SocketName &out_from) |
Receive. More... | |
int | peek (void *data, int len, SocketName &out_from) |
Peek. More... | |
UDP socket.