12 #include <mrpt/config.h>
14 #if defined(MRPT_OS_LINUX) || defined(MRPT_OS_APPLE)
21 #include <sys/socket.h>
26 #include <sys/types.h>
27 #include <sys/ioctl.h>
29 #include <arpa/inet.h>
30 #include <netinet/in.h>
31 #include <sys/socket.h>
41 unsigned short listenPort,
43 int maxConnectionsWaiting,
44 mrpt::utils::VerbosityLevel verbosityLevel
46 COutputLogger(
"CServerTCPSocket")
49 setVerbosityLevel(verbosityLevel);
50 setupSocket( listenPort, IPaddress, maxConnectionsWaiting );
57 CServerTCPSocket::~CServerTCPSocket( )
CServerTCPSocket(unsigned short listenPort, const std::string &IPaddress=std::string("127.0.0.1"), int maxConnectionsWaiting=50, mrpt::utils::VerbosityLevel verbosityLevel=mrpt::utils::LVL_INFO)
Constructor that creates the socket, performs binding, and start listening mode.
int m_serverSock
The handle for the listening server TCP socket.
GLsizei const GLchar ** string
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values,...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.