You are here: Home > Projects > SimStream > Documentation

SimStream Documentation

List of all members.

Public Types

enum  EResult {
  SUCCESS = 0, FAIL_INCORRECT_PORT = 1, FAIL_INVALID_DESTINATION_PACKET = 2, FAIL_INVALID_DESTINATION_MESSAGE = 3,
  FAIL_CONNECTION_NOT_EXIST = 4, FAIL_NOT_ACCEPTED = 5, FAIL_MAX_CONNECTIONS_REACHED = 6
}

Public Member Functions

 CConnectionLayer (CSimHandler *sim, __uint16 port, __uint32 connectionsMax, IDelegate5< void, __uint16, __uint16, CAddress, __byte, CPacket * > *delegateSend, IDelegate2< void, CConnectionReceiver *, CPacket * > *delegateRecv, IDelegate2< bool, CAddress, CPacket * > *delegateAccept, IDelegate1< void, CConnectionSender * > *delegateAccepted, __uint32 senderSegmentSize)
__uint32 ConnectionsMax ()
__uint32 ConnectionsNum ()
EResult Recv (CAddress srcAddress, __uint16 srcPort, __uint16 dstPort, CPacketConnection *packet)
EResult Create (CAddress dstAddress, __uint16 dstPort, CConnectionReceiver **receiver)
CConnectionGet (__uint32 id, __uint32 idEntry)

Private Member Functions

__uint32 Alloc ()
void Assign (CConnection *connection)
void Free (__uint32 entry)
bool IsAvailable ()
void Dispose (CConnection *connection)

Private Attributes

CSimHandlersim
CConnectionEntryconnections
CConnectionEntryconnectionsFree
CConnectionEntryconnectionsAlloc
__uint32 connectionsMax
__uint32 connectionsNum
__uint16 port
IDelegate5< void, __uint16,
__uint16, CAddress, __byte,
CPacket * > * 
delegateSend
IDelegate2< void,
CConnectionReceiver *, CPacket * > * 
delegateRecv
IDelegate2< bool, CAddress,
CPacket * > * 
delegateAccept
IDelegate1< void,
CConnectionSender * > * 
delegateAccepted
Delegate1< CConnectionLayer,
void, CConnection * > * 
delegateDispose
__uint32 senderSegmentSize

Detailed Description

Definition at line 10 of file ConnectionLayer.h.


The documentation for this class was generated from the following files:

Last updated: February 8, 2011