NetworkClient Class Reference

#include <Network.h>

Inheritance diagram for NetworkClient:

Inheritance graph
[legend]

Public Member Functions

virtual DbRetVal send (NetworkPacketType type, char *buf, int len)=0
virtual DbRetVal receive ()=0
virtual DbRetVal connect ()=0
virtual DbRetVal disconnect ()=0
virtual ~NetworkClient ()
void setHost (char *host, int portno, int nwid)
int getNetworkID ()
void setConnectionTimeout (int timeout)
void setResponseTimeout (int timeout)
void setEntryption (bool encr)
void setConnectFlag (bool flag)
bool isConnected ()
void setCacheClient ()
bool isCacheClient ()

Protected Attributes

char hostName [IDENTIFIER_LENGTH]
int port
int networkid
bool isConnectedFlag
int responseTimeout
int connectTimeout
bool encrypt
bool cacheClient

Detailed Description

Definition at line 42 of file Network.h.


Constructor & Destructor Documentation

virtual NetworkClient::~NetworkClient (  )  [inline, virtual]

Definition at line 58 of file Network.h.

00058 {}


Member Function Documentation

virtual DbRetVal NetworkClient::connect (  )  [pure virtual]

Implemented in UDPClient, and TCPClient.

Referenced by NetworkTable::connect(), and NetworkTable::connectIfNotConnected().

Here is the caller graph for this function:

virtual DbRetVal NetworkClient::disconnect (  )  [pure virtual]

Implemented in UDPClient, and TCPClient.

Referenced by NetworkTable::disconnect().

Here is the caller graph for this function:

int NetworkClient::getNetworkID (  )  [inline]

Definition at line 65 of file Network.h.

References networkid.

Referenced by NetworkTable::connect(), and SqlLogConnection::sendAndReceive().

00065 { return networkid; }

Here is the caller graph for this function:

bool NetworkClient::isCacheClient (  )  [inline]

Definition at line 72 of file Network.h.

References cacheClient.

Referenced by SqlLogConnection::sendAndReceive().

00072 { return cacheClient; }

Here is the caller graph for this function:

bool NetworkClient::isConnected (  )  [inline]

Definition at line 70 of file Network.h.

References isConnectedFlag.

Referenced by NetworkTable::connectIfNotConnected(), NetworkTable::disconnect(), and SqlLogConnection::sendAndReceive().

00070 { return isConnectedFlag; }

Here is the caller graph for this function:

virtual DbRetVal NetworkClient::receive (  )  [pure virtual]

Implemented in UDPClient, and TCPClient.

Referenced by SqlLogConnection::sendAndReceive().

Here is the caller graph for this function:

virtual DbRetVal NetworkClient::send ( NetworkPacketType  type,
char *  buf,
int  len 
) [pure virtual]

Implemented in UDPClient, and TCPClient.

Referenced by SqlLogConnection::sendAndReceive().

Here is the caller graph for this function:

void NetworkClient::setCacheClient (  )  [inline]

Definition at line 71 of file Network.h.

References cacheClient.

Referenced by NetworkTable::readNetworkConfig().

00071 { cacheClient = true; }

Here is the caller graph for this function:

void NetworkClient::setConnectFlag ( bool  flag  )  [inline]

Definition at line 69 of file Network.h.

References isConnectedFlag.

Referenced by NetworkTable::connect(), and SqlLogConnection::sendAndReceive().

00069 { isConnectedFlag=flag;}

Here is the caller graph for this function:

void NetworkClient::setConnectionTimeout ( int  timeout  )  [inline]

Definition at line 66 of file Network.h.

References connectTimeout.

00066 { connectTimeout=timeout;}

void NetworkClient::setEntryption ( bool  encr  )  [inline]

Definition at line 68 of file Network.h.

References encrypt.

00068 { encrypt=encr;}

void NetworkClient::setHost ( char *  host,
int  portno,
int  nwid 
) [inline]

Definition at line 59 of file Network.h.

References hostName, networkid, and port.

Referenced by NetworkTable::readNetworkConfig().

00060     {
00061         strcpy(hostName, host);
00062         port = portno;
00063         networkid = nwid;
00064     }

Here is the caller graph for this function:

void NetworkClient::setResponseTimeout ( int  timeout  )  [inline]

Definition at line 67 of file Network.h.

References responseTimeout.

00067 { responseTimeout=timeout;}


Field Documentation

bool NetworkClient::cacheClient [protected]

Definition at line 51 of file Network.h.

Referenced by isCacheClient(), setCacheClient(), TCPClient::TCPClient(), and UDPClient::UDPClient().

int NetworkClient::connectTimeout [protected]

Definition at line 49 of file Network.h.

Referenced by setConnectionTimeout().

bool NetworkClient::encrypt [protected]

Definition at line 50 of file Network.h.

Referenced by setEntryption().

char NetworkClient::hostName[IDENTIFIER_LENGTH] [protected]

Definition at line 44 of file Network.h.

Referenced by UDPClient::connect(), TCPClient::connect(), TCPClient::disconnect(), and setHost().

bool NetworkClient::isConnectedFlag [protected]

Definition at line 47 of file Network.h.

Referenced by UDPClient::connect(), TCPClient::connect(), UDPClient::disconnect(), TCPClient::disconnect(), isConnected(), setConnectFlag(), TCPClient::TCPClient(), UDPClient::UDPClient(), TCPClient::~TCPClient(), and UDPClient::~UDPClient().

int NetworkClient::networkid [protected]

Definition at line 46 of file Network.h.

Referenced by UDPClient::connect(), getNetworkID(), UDPClient::send(), TCPClient::send(), and setHost().

int NetworkClient::port [protected]

Definition at line 45 of file Network.h.

Referenced by UDPClient::connect(), TCPClient::connect(), TCPClient::disconnect(), and setHost().

int NetworkClient::responseTimeout [protected]

Definition at line 48 of file Network.h.

Referenced by setResponseTimeout().


The documentation for this class was generated from the following file:
Generated on Mon Jun 9 22:48:52 2008 for csql by  doxygen 1.4.7