23 #ifndef UDP_SOCKET_HH_ 24 # define UDP_SOCKET_HH_ 88 void connect(
const std::string& hostname,
int port);
149 unsigned int pkg_size);
UdpSocket(SOCKET_VERSION version=V4)
Network namespace represent all networks connection.
void connect(const std::string &hostname, int port)
Connect as an UDP client.
void close()
Close the connection.
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...
This class represent a udp connection (client and server)
UdpSocket(PROTO_KIND pkind, SOCKET_VERSION version=V4)
This class represent an abstract socket connection (udp | tcp server | tcp client) ...
enum Network::e_version SOCKET_VERSION
enum Network::e_pkind PROTO_KIND