From e3d5da24091bad6043d7eef00f8f297bf1203ab5 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 4 Sep 2012 19:05:35 +0000 Subject: Fixed a possible race condition in cClientHandle's packet sending code; prepared for moving cSocket out of cClientHandle's ownership. git-svn-id: http://mc-server.googlecode.com/svn/trunk@832 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cClientHandle.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/cClientHandle.h') diff --git a/source/cClientHandle.h b/source/cClientHandle.h index ba9cde7f5..ab4e3e64c 100644 --- a/source/cClientHandle.h +++ b/source/cClientHandle.h @@ -60,8 +60,8 @@ public: cClientHandle(const cSocket & a_Socket, int a_ViewDistance); ~cClientHandle(); - const cSocket & GetSocket(void) const {return m_Socket; } - cSocket & GetSocket(void) {return m_Socket; } + cSocket & GetSocket (void) { return m_Socket; } + const AString & GetIPString(void) const { return m_Socket.GetIPString(); } cPlayer* GetPlayer() { return m_Player; } // tolua_export -- cgit v1.2.3