#include <Network.h>
Inheritance diagram for NetworkClient:
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 |
Definition at line 42 of file Network.h.
virtual NetworkClient::~NetworkClient | ( | ) | [inline, virtual] |
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] |
void NetworkClient::setEntryption | ( | bool | encr | ) | [inline] |
void NetworkClient::setHost | ( | char * | host, | |
int | portno, | |||
int | nwid | |||
) | [inline] |
void NetworkClient::setResponseTimeout | ( | int | timeout | ) | [inline] |
Definition at line 67 of file Network.h.
References responseTimeout.
00067 { responseTimeout=timeout;}
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] |
bool NetworkClient::encrypt [protected] |
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] |