Implemented by the framework to represent a server that listens on a port and accepts connections using IOCP.
Create a server that will listen on the given port. It will use the given IOCP for processing the successful completion of AcceptEx() calls.
For each successful connection the given IServerSocketConnectionAcceptor is used to process socket connections as they are accepted.
Returns NULL if there was an error. A specific error code can be obtained by calling WSAGetLastError().
ITcpEndpoint* CreateTcpServer(
Iocp* iocp,
ISocketConnectionAcceptor* handler,
const boost::asio::ip::tcp::endpoint& endpoint);
ITcpEndpoint* CreateTcpServer(
Iocp* iocp,
ISocketConnectionAcceptor* handler,
SOCKET_PORT port);