Basic networking utils header file.
More...
#include <string>
#include <unistd.h>
#include <memory>
#include <iostream>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <fcntl.h>
#include <boost/log/trivial.hpp>
Go to the source code of this file.
|
string | int2ipv4 (uint32_t ip) |
|
struct sockaddr_in | resolve (const char *host, int port) |
|
Basic networking utils header file.
- Author
- StealthTech Recast-server
- Date
- 17.06.17 st3al.nosp@m.thte.nosp@m.ch@ma.nosp@m.il.r.nosp@m.u
string int2ipv4 |
( |
uint32_t |
ip | ) |
|
struct sockaddr_in resolve |
( |
const char * |
host, |
|
|
int |
port |
|
) |
| |
const int DEFAULT_PORT_TCP = 1337 |
const int DEFAULT_PORT_UDP = 1338 |