NetTcp.h File Reference

#include <queue>
#include <fstream>
#include <ext/hash_map>
#include <pthread.h>
#include <sys/types.h>
#include <string.h>
#include "RioInterfaceTypes.h"
#include "LogRotation.h"
#include "RioUnix.h"

Go to the source code of this file.

Data Structures

struct  SSendData
struct  EqKeys
struct  SNetTcpConfig
struct  SNetTcpClientData
struct  SNetTcpServerData
class  CTcpConnection
class  CNetTcp

Defines

#define TCP_FLAGS_RECEIVE   MSG_WAITALL
#define TCP_FLAGS_SENDSIZE   MSG_NOSIGNAL | MSG_MORE
#define TCP_FLAGS_SENDDATA   MSG_NOSIGNAL
#define UDP_FLAGS_RECEIVE   MSG_WAITALL
#define UDP_FLAGS_SEND   MSG_CONFIRM
#define MSG_POLL_NEWDATA   "NEW_DATA"
#define MSG_POLL_SIZE   8
#define TCP_START_MESSAGE_SIZE   5
#define TCP_START_MESSAGE   "NTCPI"
#define MAXHASHKEYSIZE   25
#define TCPCONNECTIONSOCKETSNUMBER   2
#define TCPCONNECTIONSOCKETTCP   0
#define TCPCONNECTIONSOCKETUDP   1

Typedefs

typedef queue< SSendDataTSendQueue
typedef hash< const char * > TKeyHash
typedef hash_map< const char
*, CTcpConnection *, TKeyHash,
EqKeys
TTcpConnectionsMap
typedef
TTcpConnectionsMap::iterator 
TTcpConnectionsIterator

Enumerations

enum  EClosedType { CONNECTIONCLOSEDLOCALLY, CONNECTIONCLOSEDREMOTELLY, CONNECTIONTIMEOUT, CONNECTIONUNDEFINED }
enum  EErrorType { RECEIVEERROR, SENDERROR, OTHERERROR }

Define Documentation

#define MAXHASHKEYSIZE   25

Definition at line 85 of file NetTcp.h.

#define MSG_POLL_NEWDATA   "NEW_DATA"

Definition at line 67 of file NetTcp.h.

#define MSG_POLL_SIZE   8

Definition at line 68 of file NetTcp.h.

#define TCP_FLAGS_RECEIVE   MSG_WAITALL

Definition at line 54 of file NetTcp.h.

#define TCP_FLAGS_SENDDATA   MSG_NOSIGNAL

Definition at line 58 of file NetTcp.h.

#define TCP_FLAGS_SENDSIZE   MSG_NOSIGNAL | MSG_MORE

Definition at line 56 of file NetTcp.h.

#define TCP_START_MESSAGE   "NTCPI"

Definition at line 79 of file NetTcp.h.

#define TCP_START_MESSAGE_SIZE   5

Definition at line 78 of file NetTcp.h.

#define TCPCONNECTIONSOCKETSNUMBER   2

Definition at line 89 of file NetTcp.h.

#define TCPCONNECTIONSOCKETTCP   0

Definition at line 92 of file NetTcp.h.

#define TCPCONNECTIONSOCKETUDP   1

Definition at line 93 of file NetTcp.h.

#define UDP_FLAGS_RECEIVE   MSG_WAITALL

Definition at line 62 of file NetTcp.h.

#define UDP_FLAGS_SEND   MSG_CONFIRM

Definition at line 64 of file NetTcp.h.


Typedef Documentation

typedef hash< const char * > TKeyHash

Definition at line 139 of file NetTcp.h.

typedef queue< SSendData > TSendQueue

Definition at line 126 of file NetTcp.h.

typedef TTcpConnectionsMap::iterator TTcpConnectionsIterator

Definition at line 149 of file NetTcp.h.

typedef hash_map< const char *, CTcpConnection *, TKeyHash, EqKeys > TTcpConnectionsMap

Definition at line 144 of file NetTcp.h.


Enumeration Type Documentation

Enumerator:
CONNECTIONCLOSEDLOCALLY 
CONNECTIONCLOSEDREMOTELLY 
CONNECTIONTIMEOUT 
CONNECTIONUNDEFINED 

Definition at line 96 of file NetTcp.h.

00097 {
00098     CONNECTIONCLOSEDLOCALLY,   // A conexao foi fechada pelo proprio objeto.
00099     CONNECTIONCLOSEDREMOTELLY,   // A conexao foi fechada pelo outro lado.
00100     CONNECTIONTIMEOUT,  // A conexao foi fechada por timeout.
00101     CONNECTIONUNDEFINED // Usado para inicializar as variaveis.
00102 };

enum EErrorType
Enumerator:
RECEIVEERROR 
SENDERROR 
OTHERERROR 

Definition at line 106 of file NetTcp.h.

00107 {
00108     RECEIVEERROR,
00109     SENDERROR,
00110     OTHERERROR
00111 };

Generated on Wed Jul 4 16:03:29 2012 for RIO by  doxygen 1.6.3