From dcd82b69888c1d36a44d57fc8c68417342764d75 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 7 Feb 2012 21:16:34 +0000 Subject: cSocket: final localhost fix - made it a function (forgotten file) git-svn-id: http://mc-server.googlecode.com/svn/trunk@243 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cSocketThreads.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source') diff --git a/source/cSocketThreads.cpp b/source/cSocketThreads.cpp index f5d007b66..277036e46 100644 --- a/source/cSocketThreads.cpp +++ b/source/cSocketThreads.cpp @@ -279,7 +279,7 @@ bool cSocketThreads::cSocketThread::Start(void) } cSocket::SockAddr_In Addr; Addr.Family = cSocket::ADDRESS_FAMILY_INTERNET; - Addr.Address = cSocket::INTERNET_ADDRESS_LOCALHOST; + Addr.Address = cSocket::INTERNET_ADDRESS_LOCALHOST(); Addr.Port = 0; // Any free port is okay if (m_ControlSocket1.Bind(Addr) != 0) { @@ -324,7 +324,7 @@ void cSocketThreads::cSocketThread::Execute(void) // Connect the "client" part of the Control socket: cSocket::SockAddr_In Addr; Addr.Family = cSocket::ADDRESS_FAMILY_INTERNET; - Addr.Address = cSocket::INTERNET_ADDRESS_LOCALHOST; + Addr.Address = cSocket::INTERNET_ADDRESS_LOCALHOST(); Addr.Port = m_ControlSocket1.GetPort(); assert(Addr.Port != 0); // We checked in the Start() method, but let's be sure if (m_ControlSocket2.Connect(Addr) != 0) @@ -464,7 +464,7 @@ void cSocketThreads::cSocketThread::WriteToSockets(fd_set * a_Write) return; } m_Slots[i].m_Outgoing.erase(0, Sent); - } + } // for i - m_Slots[i] } -- cgit v1.2.3