Go to the documentation of this file.
24 trace(
"UDPSocket::open");
41 trace(
"UDPSocket::close()");
54 trace(
"UDPSocket::bind");
virtual const int getLength() const =0
Return length of the underlying address structure.
virtual SA * getAddress() const =0
Retrieve pointer to the address structure.
bool close()
Close socket connection.
@ failbit
indicates that an input operation failed to read the expected characters, or that an output operation...
handler_t m_fd
File descriptor.
void setstate(iostate flag_)
Set socket state to flag_ by adding flag_ to the existing state.
int m_type
Socket domain type.
bool bind(const Address &my_address_)
Server in UDP client-server scenario has to bind socket to its local well-known port.
void clear(iostate state_=Socket::goodbit)
Clear the socket state. Closed socket remains in bad state.
bool open(const int domain_)
Create socket.