Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

network.cpp File Reference


Detailed Description

Implementation of network classes: clean, endian-safe and easy to use TCP/IP sockets wrapper.

#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.


Generated on Mon Oct 24 17:30:54 2005 for libishtarnet by  doxygen 1.4.2