NetInterface Class Reference

#include <NetInterface.h>

Collaboration diagram for NetInterface:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 16 of file NetInterface.h.

Public Member Functions

 NetInterface (const char *_ip, int _port) throw (NetInterfaceException)
 NetInterface (const NetInterface &net) throw (NetInterfaceException)
void listen () throw (NetInterfaceException)
void acceptConnection () throw (NetInterfaceException)
void connectTo () throw (NetInterfaceException)
void close ()
void down ()
int write ()
int read (const int BUFFER_SIZE)
int readWithTimeout (const int BUFFER_SIZE, int timeoutMillis)
void writeToBuffer (std::string in)
std::string readFromBuffer ()
void clearBuffer ()
std::string getClientIP ()
std::string getClientPort ()
int getOutDescr ()

Static Public Attributes

static const int NO_DATA_UNTIL_TIMEOUT = -2

Private Attributes

int inDescr
int outDescr
in_addr ip
u_int16_t port
sockaddr_in clientAddr
std::string readbuffer
std::string writebuffer

Static Private Attributes

static const int QUEUE = 10


The documentation for this class was generated from the following files:
Generated on Wed Jun 25 14:47:11 2008 for keyvil by  doxygen 1.5.1