diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-07 22:16:34 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-07 22:16:34 +0100 |
commit | dcd82b69888c1d36a44d57fc8c68417342764d75 (patch) | |
tree | 98c976883017591f389ecebd391d7217dd1b89d2 /source/cSocketThreads.cpp | |
parent | cSocket: final localhost fix - made it a function (diff) | |
download | cuberite-dcd82b69888c1d36a44d57fc8c68417342764d75.tar cuberite-dcd82b69888c1d36a44d57fc8c68417342764d75.tar.gz cuberite-dcd82b69888c1d36a44d57fc8c68417342764d75.tar.bz2 cuberite-dcd82b69888c1d36a44d57fc8c68417342764d75.tar.lz cuberite-dcd82b69888c1d36a44d57fc8c68417342764d75.tar.xz cuberite-dcd82b69888c1d36a44d57fc8c68417342764d75.tar.zst cuberite-dcd82b69888c1d36a44d57fc8c68417342764d75.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cSocketThreads.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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]
}
|