summaryrefslogtreecommitdiffstats
path: root/source/Server.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-25 10:23:19 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-25 10:23:19 +0200
commit7a43f6be09cfe74dc4a757e949ba88ce033ac419 (patch)
tree5273b2363de5c1ac5201cc443d8682733db598c4 /source/Server.cpp
parentProtoProxy: fixed after file renaming (diff)
downloadcuberite-7a43f6be09cfe74dc4a757e949ba88ce033ac419.tar
cuberite-7a43f6be09cfe74dc4a757e949ba88ce033ac419.tar.gz
cuberite-7a43f6be09cfe74dc4a757e949ba88ce033ac419.tar.bz2
cuberite-7a43f6be09cfe74dc4a757e949ba88ce033ac419.tar.lz
cuberite-7a43f6be09cfe74dc4a757e949ba88ce033ac419.tar.xz
cuberite-7a43f6be09cfe74dc4a757e949ba88ce033ac419.tar.zst
cuberite-7a43f6be09cfe74dc4a757e949ba88ce033ac419.zip
Diffstat (limited to 'source/Server.cpp')
-rw-r--r--source/Server.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/Server.cpp b/source/Server.cpp
index c77892076..8cf923882 100644
--- a/source/Server.cpp
+++ b/source/Server.cpp
@@ -113,27 +113,27 @@ void cServer::NotifyClientWrite(const cClientHandle * a_Client)
-void cServer::WriteToClient(const cSocket * a_Socket, const AString & a_Data)
+void cServer::WriteToClient(const cClientHandle * a_Client, const AString & a_Data)
{
- m_SocketThreads.Write(a_Socket, a_Data);
+ m_SocketThreads.Write(a_Client, a_Data);
}
-void cServer::QueueClientClose(const cSocket * a_Socket)
+void cServer::QueueClientClose(const cClientHandle * a_Client)
{
- m_SocketThreads.QueueClose(a_Socket);
+ m_SocketThreads.QueueClose(a_Client);
}
-void cServer::RemoveClient(const cSocket * a_Socket)
+void cServer::RemoveClient(const cClientHandle * a_Client)
{
- m_SocketThreads.RemoveClient(a_Socket);
+ m_SocketThreads.RemoveClient(a_Client);
}
@@ -340,8 +340,8 @@ void cServer::StartListenClient()
LOG("Client \"%s\" connected!", ClientIP.c_str());
- cClientHandle *NewHandle = new cClientHandle(SClient, m_ClientViewDistance);
- if (!m_SocketThreads.AddClient(&(NewHandle->GetSocket()), NewHandle))
+ cClientHandle * NewHandle = new cClientHandle(&SClient, m_ClientViewDistance);
+ if (!m_SocketThreads.AddClient(SClient, NewHandle))
{
// For some reason SocketThreads have rejected the handle, clean it up
LOGERROR("Client \"%s\" cannot be handled, server probably unstable", SClient.GetIPString().c_str());