#include <TransportLayer.h>
Public Methods | |
TransportLayer () | |
Create the Transport Layer. More... | |
~TransportLayer () | |
int | connect () |
Return a identifier for a connection that can be used later to read or disconnect. More... | |
int | listenAccept () |
Return a identifier for a connection that can be used later to read or disconnect. More... | |
int | send (int serviceNumber, u_char *msg, int length) |
Send data to the connection descriptor. More... | |
int | receive (int serviceNumber, u_char *msg, int length) |
Receive data on the connection description specified. More... | |
bool | disconnect (int serviceNumber) |
Disconnect from the connection descriptor specified. More... | |
ServiceTable * | getServiceTable () |
NetworkLayer * | getNetworkLayer () |
Private Attributes | |
ServiceTable * | m_serviceTable |
The call structure: ->Create TransportLayer |->Create Timer |->Create ServiceTable |->Create NetworkLayer | |->Create LinkLayerInterface | | |->Create connection table | | |->start thread: listen | | |->start thread: peerConnect | | |->start thread: receivePacket | |->register as packet handler for LLI | |->Create VirtualCircuitTable | |->Create PriorityPacketQueue | |->Create LiveBroadcastTable | | |->start thread:onTick | |->start thread:processPackets
Definition at line 7 of file TransportLayer.h.
|
Create the Transport Layer.
Definition at line 45 of file TransportLayer.cpp. |
|
Definition at line 54 of file TransportLayer.cpp. |
|
Return a identifier for a connection that can be used later to read or disconnect.
Definition at line 65 of file TransportLayer.cpp. Referenced by ProxyRequestCommand::run().
|
|
Disconnect from the connection descriptor specified. This function MUST be called to destroy any connection you create, or any connection that has been accepted. Otherwise you will have a memory leak.
Definition at line 132 of file TransportLayer.cpp. Referenced by WebServer::handleConnection(), and ProxyRequestCommand::run().
|
|
Definition at line 145 of file TransportLayer.cpp. Referenced by GlobalObjects::init().
|
|
Definition at line 139 of file TransportLayer.cpp. Referenced by GlobalObjects::getServiceTable().
|
|
Return a identifier for a connection that can be used later to read or disconnect.
Definition at line 76 of file TransportLayer.cpp. Referenced by WebServer::run().
|
|
Receive data on the connection description specified.
Definition at line 112 of file TransportLayer.cpp. Referenced by WebServer::handleConnection(), and ProxyRequestCommand::run().
|
|
Send data to the connection descriptor.
Definition at line 89 of file TransportLayer.cpp. Referenced by WebServer::handleConnection(), and ProxyRequestCommand::run().
|
|
Definition at line 27 of file TransportLayer.h. |