#include "network.h"
#include <sstream>
#include <iostream>
#include <assert.h>
#include <string.h>
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <signal.h>
#include <sys/select.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
Namespaces | |
namespace | Ishtar |
Functions | |
void | termHandler (int t) |
Called when SIGTERM arrives, halts NetworkServer run. | |
Variables | |
SocketHelper | socketHelper |
Instance of socket helper. | |
const size_t | startSendBufferSize = 256 |
Size of a newly allocated send buffer. | |
const size_t | bigSendSize = 65536 |
When size of send buffer is bigSendSize, send it, even if flush hasn't been called. | |
int | netRun = 1 |
Network server is running, set to 0 by SIGTERM. |