12 #include <MRPT/config.h> 14 #ifdef MRPT_OS_WINDOWS 17 #if (__BORLANDC__) || (_MSC_VER) 18 #pragma comment(lib, "WS2_32.LIB") 31 CServerTCPSocket::CServerTCPSocket(
32 unsigned short listenPort,
const std::string& IPaddress,
33 int maxConnectionsWaiting, mrpt::utils::VerbosityLevel verbosityLevel)
34 : COutputLogger(
"CServerTCPSocket")
37 setVerbosityLevel(verbosityLevel);
41 WORD wVersionRequested;
44 wVersionRequested = MAKEWORD(2, 0);
46 if (0 != WSAStartup(wVersionRequested, &wsaData))
50 setupSocket(listenPort, IPaddress, maxConnectionsWaiting);
66 #endif // MRPT_OS_WINDOWS
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
#define THROW_EXCEPTION(msg)
virtual ~CServerTCPSocket()
Dtor.
std::string getLastErrorStr()
Returns a description of the last Sockets error.
void setupSocket(unsigned short listenPort, const std::string &IPaddress, int maxConnectionsWaiting)
Common code called from the platform-dependant constructor.
GLsizei const GLchar ** string
int m_serverSock
The handle for the listening server TCP socket.
Serial and networking devices and utilities.