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> 40 CServerTCPSocket::CServerTCPSocket(
41 unsigned short listenPort,
const std::string& IPaddress,
42 int maxConnectionsWaiting, mrpt::utils::VerbosityLevel verbosityLevel)
43 : COutputLogger(
"CServerTCPSocket")
46 setVerbosityLevel(verbosityLevel);
47 setupSocket(listenPort, IPaddress, maxConnectionsWaiting);
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
virtual ~CServerTCPSocket()
Dtor.
void setupSocket(unsigned short listenPort, const std::string &IPaddress, int maxConnectionsWaiting)
Common code called from the platform-dependant constructor.
GLsizei const GLchar ** string
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
int m_serverSock
The handle for the listening server TCP socket.
Serial and networking devices and utilities.