75 std::string m_address;
A network socket (an endpoint for communication).
Definition socket.h:19
bool connect()
Establishes a connection.
~Socket()
Destructs a Socket.
Socket(SocketPurpose purpose, SocketType type, AddressFamily family, const std::string &address, int port)
Constructs a Socket.
std::string receiveMessage() const
Receives a message.
bool sendMessage(const std::string &message) const
Sends a message.
bool disconnect()
Closes a connection.
Definition addressfamily.h:11
SocketType
Type of sockets.
Definition sockettype.h:16
SocketPurpose
Purposes of sockets.
Definition socketpurpose.h:10
AddressFamily
Type of address that can be used by a socket.
Definition addressfamily.h:16