#include <LinTcp.hpp>
Public Attributes | |
INT | ServerSocket |
DWORD | ServerPort |
System::CriticalResource < Network::ConnectionVector > | Connections |
pthread_t | AcceptThread |
BOOL | StopAccepting |
DWORD | NumberOfThreads |
pthread_t * | WorkerThreads |
INT | CompletionPort |
BOOL | ShutdownEvent |
Private Member Functions | |
VOID | StaticConstructor () |
VOID | Create () |
VOID | Destroy () |
BOOL | Bind (CONST TCHAR *Source, DWORD Port) |
VOID | Connect (CONST TCHAR *Source, CONST TCHAR *Host, DWORD Port) |
VOID | Send (Network::Connection *Link, CONST BYTE *Data, DWORD Length) |
VOID | GetInfo (Network::Connection *Link, Network::ConnectionInfo *Information) |
VOID | Disconnect (Network::Connection *Link) |
PVOID | AcceptProc () |
PVOID | WorkerProc () |
VOID | AcceptConnection () |
VOID | AddConnection (Network::Connection *Link) |
VOID | RemoveConnection (Network::Connection *Link) |
Static Private Member Functions | |
static PVOID | AcceptThreadProc (PVOID Argument) |
static PVOID | WorkerThreadProc (PVOID Argument) |
VOID Linux::TcpManager::StaticConstructor | ( | ) | [private] |
Object static constructor.
Reimplemented from System::Object.
VOID Linux::TcpManager::Create | ( | ) | [private, virtual] |
Called when an object is created.
Reimplemented from System::Object.
VOID Linux::TcpManager::Destroy | ( | ) | [private, virtual] |
Destroy allocated resource.
Reimplemented from System::Object.
BOOL Linux::TcpManager::Bind | ( | CONST TCHAR * | Source, | |
DWORD | Port | |||
) | [private, virtual] |
Bind and listen for connections.
Implements Network::Manager.
VOID Linux::TcpManager::Connect | ( | CONST TCHAR * | Source, | |
CONST TCHAR * | Host, | |||
DWORD | Port | |||
) | [private, virtual] |
Connect to a remote host.
Implements Network::Manager.
VOID Linux::TcpManager::Send | ( | Network::Connection * | Link, | |
CONST BYTE * | Data, | |||
DWORD | Length | |||
) | [private, virtual] |
Send data across a connection.
Implements Network::Manager.
VOID Linux::TcpManager::GetInfo | ( | Network::Connection * | Link, | |
Network::ConnectionInfo * | Information | |||
) | [private, virtual] |
Get connection information.
Implements Network::Manager.
VOID Linux::TcpManager::Disconnect | ( | Network::Connection * | Link | ) | [private, virtual] |
Disconnect a specific connection.
Implements Network::Manager.
PVOID Linux::TcpManager::AcceptProc | ( | ) | [private] |
Deals with accepting connections.
PVOID Linux::TcpManager::WorkerProc | ( | ) | [private] |
Deals with network i/o.
VOID Linux::TcpManager::AcceptConnection | ( | ) | [private] |
Accepts a connection.
VOID Linux::TcpManager::AddConnection | ( | Network::Connection * | Link | ) | [private] |
Add connection to the list.
VOID Linux::TcpManager::RemoveConnection | ( | Network::Connection * | Link | ) | [private] |
Remove Connection from list.
PVOID Linux::TcpManager::AcceptThreadProc | ( | PVOID | Argument | ) | [static, private] |
Calls on the member accept procedure routine.
PVOID Linux::TcpManager::WorkerThreadProc | ( | PVOID | Argument | ) | [static, private] |
Calls on the member worker thread procedure.
The socket it listens on.
The port on which to accept connections.
The connections it manages.
pthread_t Linux::TcpManager::AcceptThread |
Thread deadicated to accepting connections.
Indicates that the accept thread should terminate.
The number of worker threads.
pthread_t* Linux::TcpManager::WorkerThreads |
Threads dedicated to connection I/O.
The completion port (event fd).
Indicates a shutdown is taking place.