#include "socket.h"
#include <cstdio>
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include "util/string.h"
#include "util/numeric.h"
#include "constants.h"
#include "debug.h"
#include "log.h"
#include <cerrno>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <fcntl.h>
#include <poll.h>
#include <unistd.h>
#include <arpa/inet.h>
Macros | |
#define | LAST_SOCKET_ERR() (errno) |
#define | SOCKET_ERR_STR(e) strerror(e) |
Functions | |
void | sockets_init () |
void | sockets_cleanup () |
Variables | |
static bool | g_sockets_initialized = false |
#define LAST_SOCKET_ERR | ( | ) | (errno) |
#define SOCKET_ERR_STR | ( | e | ) | strerror(e) |
Referenced by UDPSocket::Bind(), UDPSocket::init(), and UDPSocket::WaitData().
void sockets_cleanup | ( | ) |
References g_sockets_initialized.
Referenced by uninit_common().
void sockets_init | ( | ) |
References g_sockets_initialized.
Referenced by init_common().
|
static |
Referenced by UDPSocket::init(), sockets_cleanup(), and sockets_init().