24# define UDP_SOCKET_HH_
88 void connect(
const std::string& hostname,
int port);
149 unsigned int pkg_size);
This class represent an abstract socket connection (udp | tcp server | tcp client)
This class represent a udp connection (client and server)
std::string _read_line_bin(int socket, int &port, std::string &host, unsigned int pkg_size)
Get a line from socket and store client hostname and port in port and host variable (when used with b...
void connect(const std::string &hostname, int port)
Connect as an UDP client.
UdpSocket(PROTO_KIND pkind, SOCKET_VERSION version=V4)
UdpSocket(SOCKET_VERSION version=V4)
void close()
Close the connection.
Network namespace represent all networks connection.
enum Network::e_version SOCKET_VERSION
enum Network::e_pkind PROTO_KIND