Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tcpserver.cc')
-rw-r--r--src/net/tcpserver.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/net/tcpserver.cc b/src/net/tcpserver.cc
index f194a63..3276f87 100644
--- a/src/net/tcpserver.cc
+++ b/src/net/tcpserver.cc
@@ -27,9 +27,9 @@ TCPServer::TCPServer(std::string const host, unsigned int const port)
{
tcpserver_fd = -1;
tcpserver_error = true;
-
- con_debug << "TCPServer: starting." << std::endl;
-
+
+ con_print << "Initializing network..." << std::endl;
+
// initialize socket
tcpserver_fd = ::socket(PF_INET, SOCK_STREAM, 0);
if (tcpserver_fd == -1) {
@@ -73,7 +73,7 @@ TCPServer::TCPServer(std::string const host, unsigned int const port)
}
tcpserver_error = false;
- con_print << "Listening on " << inet_ntoa(listen_addr.sin_addr) <<
+ con_print << " listening on " << inet_ntoa(listen_addr.sin_addr) <<
":" << ntohs(listen_addr.sin_port) << std::endl;
}
@@ -81,7 +81,7 @@ TCPServer::~TCPServer()
{
if (tcpserver_fd != -1)
::close(tcpserver_fd);
- con_debug << "TCPServer: terminated." << std::endl;
+ //con_debug << "TCPServer: terminated." << std::endl;
}
bool TCPServer::valid() const
@@ -111,7 +111,7 @@ void TCPServer::abort()
void TCPServer::accept()
{
- con_debug << "TCPServer: accept()" << std::endl;
+ //con_debug << "TCPServer: accept()" << std::endl;
struct sockaddr_in client_addr;
socklen_t addrlen = sizeof(struct sockaddr_in);
@@ -129,3 +129,4 @@ void TCPServer::accept()
}
}
+