Skip to content
Snippets Groups Projects
Commit 43cb96a7 authored by Maxime Graulich's avatar Maxime Graulich
Browse files

ONELAB2: print real port

parent 7fa218e0
Branches
Tags
No related merge requests found
...@@ -54,7 +54,7 @@ void OnelabServer::listenOnTcp(unsigned int iface, unsigned short port) ...@@ -54,7 +54,7 @@ void OnelabServer::listenOnTcp(unsigned int iface, unsigned short port)
ip4_socket_ip(_fds, _ip); ip4_socket_ip(_fds, _ip);
ip4_socket_listen(_fds); ip4_socket_listen(_fds);
std::clog << "\033[0;31m" << "listen on TCP - " << ip4_inet_ntop(iface) << ":" << port << "\033[0m" << std::endl; std::clog << "\033[0;31m" << "listen on TCP - " << ip4_inet_ntop(_ip.address) << ":" << _ip.port << "\033[0m" << std::endl;
pthread_create(&_tcpThread, NULL, acceptTcpClient, NULL); pthread_create(&_tcpThread, NULL, acceptTcpClient, NULL);
_tcpServer = true; _tcpServer = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment