33 trace(
"UDPSocket::UDPSocket()");
41 trace(
"UDPSocket::UDPSocket(fd)");
48 trace(
"UDPSocket::~UDPSocket");
58 bool open (
const int domain_);
#define trace(s)
trace() is used to trace function call chain in C++ program.
Abstraction of socket data type.
int m_type
Socket domain type.
handler_t m_fd
File descriptor.
const int getDomain() const
Get socket domain type.
void setHandler(const int fd_)
Set file descriptor.
handler_t getHandler() const
Get socket file descriptor.
UDPSocket()
Default constructor.
UDPSocket(const handler_t fd_)
Constructor.
virtual ~UDPSocket()
Destructor will close connection.
bool open(const int domain_)
Create socket.
bool bind(const Address &my_address_)
Server in UDP client-server scenario has to bind socket to its local well-known port.
void setDomain(const int type_)
Set socket domain type.
bool close()
Close socket connection.