#include <PacketizedTCP.h>
Inherits TCPInterface.
Definition at line 19 of file PacketizedTCP.h.
PacketizedTCP::PacketizedTCP | ( | ) |
Definition at line 12 of file PacketizedTCP.cpp.
PacketizedTCP::~PacketizedTCP | ( | ) | [virtual] |
void PacketizedTCP::AddToConnectionList | ( | SystemAddress | sa | ) | [protected] |
Definition at line 358 of file PacketizedTCP.cpp.
void PacketizedTCP::AttachPlugin | ( | PluginInterface2 * | plugin | ) |
void PacketizedTCP::ClearAllConnections | ( | void | ) | [protected] |
Definition at line 364 of file PacketizedTCP.cpp.
void PacketizedTCP::CloseConnection | ( | SystemAddress | systemAddress | ) |
Disconnects a player/address.
Reimplemented from TCPInterface.
Definition at line 336 of file PacketizedTCP.cpp.
void PacketizedTCP::DetachPlugin | ( | PluginInterface2 * | plugin | ) |
SystemAddress PacketizedTCP::HasCompletedConnectionAttempt | ( | void | ) |
Has a previous call to connect succeeded?
Reimplemented from TCPInterface.
Definition at line 371 of file PacketizedTCP.cpp.
SystemAddress PacketizedTCP::HasFailedConnectionAttempt | ( | void | ) |
Has a previous call to connect failed?
Reimplemented from TCPInterface.
Definition at line 379 of file PacketizedTCP.cpp.
SystemAddress PacketizedTCP::HasLostConnection | ( | void | ) |
Queued events of lost connections.
Reimplemented from TCPInterface.
Definition at line 395 of file PacketizedTCP.cpp.
SystemAddress PacketizedTCP::HasNewIncomingConnection | ( | void | ) |
Queued events of new incoming connections.
Reimplemented from TCPInterface.
Definition at line 387 of file PacketizedTCP.cpp.
void PacketizedTCP::PushNotificationsToQueues | ( | void | ) | [protected] |
Definition at line 101 of file PacketizedTCP.cpp.
Packet * PacketizedTCP::Receive | ( | void | ) |
Returns data received.
Reimplemented from TCPInterface.
Definition at line 150 of file PacketizedTCP.cpp.
void PacketizedTCP::RemoveFromConnectionList | ( | SystemAddress | sa | ) | [protected] |
Definition at line 344 of file PacketizedTCP.cpp.
Packet * PacketizedTCP::ReturnOutgoingPacket | ( | void | ) | [protected] |
Definition at line 283 of file PacketizedTCP.cpp.
void PacketizedTCP::Send | ( | const char * | data, | |
unsigned | length, | |||
SystemAddress | systemAddress, | |||
bool | broadcast | |||
) |
Sends a byte stream.
Definition at line 44 of file PacketizedTCP.cpp.
bool PacketizedTCP::SendList | ( | const char ** | data, | |
const int * | lengths, | |||
const int | numParameters, | |||
SystemAddress | systemAddress, | |||
bool | broadcast | |||
) |
Definition at line 63 of file PacketizedTCP.cpp.
bool PacketizedTCP::Start | ( | unsigned short | port, | |
unsigned short | maxIncomingConnections, | |||
int | threadPriority = -99999 | |||
) |
Starts the TCP server on the indicated port
[in] | threadPriority | Passed to thread creation routine. Use THREAD_PRIORITY_NORMAL for Windows. WARNING!!! On Linux, 0 means highest priority! You MUST set this to something valid based on the values used by your other threads |
Definition at line 21 of file PacketizedTCP.cpp.
void PacketizedTCP::Stop | ( | void | ) |
Stops the TCP server.
Reimplemented from TCPInterface.
Definition at line 33 of file PacketizedTCP.cpp.
Definition at line 76 of file PacketizedTCP.h.
Definition at line 76 of file PacketizedTCP.h.
Definition at line 76 of file PacketizedTCP.h.
Definition at line 76 of file PacketizedTCP.h.
DataStructures::Map<SystemAddress, DataStructures::ByteQueue *> PacketizedTCP::connections [protected] |
Definition at line 73 of file PacketizedTCP.h.
Definition at line 70 of file PacketizedTCP.h.
DataStructures::Queue<Packet*> PacketizedTCP::waitingPackets [protected] |
Definition at line 72 of file PacketizedTCP.h.