24 trace(
"UDPSocket::open");
41 trace(
"UDPSocket::close()");
54 trace(
"UDPSocket::bind");
bool open(const int domain_)
Create socket.
void clear(iostate state_=Socket::goodbit)
Clear the socket state. Closed socket remains in bad state.
int m_type
Socket domain type.
#define trace(s)
trace() is used to trace function call chain in C++ program.
indicates that an input operation failed to read the expected characters, or that an output operation...
Class UDPSocket is an implementation of UNIX domain socket that is the base class for more specialize...
virtual SA * getAddress() const =0
Retrieve pointer to the address structure.
virtual const int getLength() const =0
Return length of the underlying address structure.
bool close()
Close socket connection.
handler_t m_fd
File descriptor.
void setstate(iostate flag_)
Set socket state to flag_ by adding flag_ to the existing state.
bool bind(const Address &my_address_)
Server in UDP client-server scenario has to bind socket to its local well-known port.