![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
Stores information about a remote client.
#include <TCPInterface.h>
Public Member Functions | |
| int | Recv (char *data, const int dataSize) |
| RemoteClient () | |
| void | Reset (void) |
| int | Send (const char *data, unsigned int length) |
| void | SendOrBuffer (const char **data, const unsigned int *lengths, const int numParameters) |
| void | SetActive (bool a) |
Public Attributes | |
| bool | isActive |
| SimpleMutex | isActiveMutex |
| DataStructures::ByteQueue | outgoingData |
| SimpleMutex | outgoingDataMutex |
| SOCKET | socket |
| SystemAddress | systemAddress |
Definition at line 198 of file TCPInterface.h.
| RakNet::RemoteClient::RemoteClient | ( | ) | [inline] |
Definition at line 200 of file TCPInterface.h.
References INVALID_SOCKET, isActive, and socket.
{
#if OPEN_SSL_CLIENT_SUPPORT==1
ssl=0;
#endif
isActive=false;
socket=INVALID_SOCKET;
}
| int RakNet::RemoteClient::Recv | ( | char * | data, |
| const int | dataSize | ||
| ) |
| void RakNet::RemoteClient::Reset | ( | void | ) | [inline] |
Definition at line 225 of file TCPInterface.h.
References _FILE_AND_LINE_, DataStructures::ByteQueue::Clear(), RakNet::SimpleMutex::Lock(), outgoingData, outgoingDataMutex, and RakNet::SimpleMutex::Unlock().
{
outgoingDataMutex.Lock();
outgoingData.Clear(_FILE_AND_LINE_);
outgoingDataMutex.Unlock();
}
| int RakNet::RemoteClient::Send | ( | const char * | data, |
| unsigned int | length | ||
| ) |
| void RakNet::RemoteClient::SendOrBuffer | ( | const char ** | data, |
| const unsigned int * | lengths, | ||
| const int | numParameters | ||
| ) |
| void RakNet::RemoteClient::SetActive | ( | bool | a | ) |
Definition at line 210 of file TCPInterface.h.
Referenced by RemoteClient().
Definition at line 212 of file TCPInterface.h.
Definition at line 209 of file TCPInterface.h.
Referenced by Reset().
Definition at line 211 of file TCPInterface.h.
Referenced by Reset().
Definition at line 207 of file TCPInterface.h.
Referenced by RemoteClient().
Definition at line 208 of file TCPInterface.h.
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.