summaryrefslogtreecommitdiff
path: root/src/net/network.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/network.cpp')
-rw-r--r--src/net/network.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/net/network.cpp b/src/net/network.cpp
index 44d07e13..fa009341 100644
--- a/src/net/network.cpp
+++ b/src/net/network.cpp
@@ -45,7 +45,7 @@ fd_set write_socket;
void WFIFOSET(int len)
{
if (out_size + len >= buffer_size) {
- logger.log("Warning: Output buffer full");
+ logger->log("Warning: Output buffer full");
}
else {
out_size += len;
@@ -154,16 +154,16 @@ void flush()
}
}
if (ret == SOCKET_ERROR) {
- logger.error("Socket Error");
+ logger->error("Socket Error");
#ifdef WIN32
- logger.log("Error: Socket error: %i ", WSAGetLastError());
+ logger->log("Error: Socket error: %i ", WSAGetLastError());
if (WSAGetLastError() == 10053)
- logger.log("Error: Packet size error");
+ logger->log("Error: Packet size error");
/** Probably the last packet you sent, was defined with
* wrong size: WFIFOSET(size);
*/
#else
- logger.log("Error: Undefined socket error");
+ logger->log("Error: Undefined socket error");
#endif
}
}
@@ -175,9 +175,9 @@ void flush()
ret = recv(sock, in+in_size, RFIFOSPACE, 0);
if (ret == SOCKET_ERROR) {
#ifdef WIN32
- logger.log("Error: Socket error: %i ", WSAGetLastError());
+ logger->log("Error: Socket error: %i ", WSAGetLastError());
#else
- logger.log("Error: Undefined socket error");
+ logger->log("Error: Undefined socket error");
#endif
} else RFIFOSET(ret); // Set size of available data to read
}