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