diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-06-20 18:19:12 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-06-20 18:19:12 -0300 |
| commit | 7dff6dfd600e346c7bbd9fbcf6064caae156c984 (patch) | |
| tree | d1ecb8ef48950b510b265573b8a77eb38f45e543 /src/communication.hh | |
| parent | 083047d123ba753b86c24c87ee702f84e1edfb52 (diff) | |
| download | game-7dff6dfd600e346c7bbd9fbcf6064caae156c984.tar.gz game-7dff6dfd600e346c7bbd9fbcf6064caae156c984.zip | |
finish `communication.cc`
Diffstat (limited to 'src/communication.hh')
| -rw-r--r-- | src/communication.hh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/communication.hh b/src/communication.hh index bfeeeb4..f466b9e 100644 --- a/src/communication.hh +++ b/src/communication.hh @@ -20,11 +20,12 @@ void ReleaseCommunicationThreadStack(int StackNumber); void InitCommunicationThreadStacks(void); void ExitCommunicationThreadStacks(void); -void InitLoadHistory(void); bool LagDetected(void); void NetLoad(int Amount, bool Send); void NetLoadSummary(void); void NetLoadCheck(void); +void InitLoadHistory(void); +void ExitLoadHistory(void); bool WriteToSocket(TConnection *Connection, uint8 *Buffer, int Size); bool SendLoginMessage(TConnection *Connection, int Type, const char *Message, int WaitingTime); @@ -45,4 +46,15 @@ TPlayerData *PerformRegistration(TConnection *Connection, char *PlayerName, bool HandleLogin(TConnection *Connection); bool ReceiveCommand(TConnection *Connection); +void IncrementActiveConnections(void); +void DecrementActiveConnections(void); +void CommunicationThread(int Socket); +int HandleConnection(void *Data); +bool OpenSocket(void); +int AcceptorThreadLoop(void *Unused); + +void CheckThreadlibVersion(void); +void InitCommunication(void); +void ExitCommunication(void); + #endif //TIBIA_COMMUNICATION_HH_ |
