Manages the list of available remote commands
예제 #1
0
        public HttpSocketServer(RemoteCommands remoteCommands)
        {
            logger = new Logger("HttpServer", false);

            InitSettings();

            m_remoteCommands = remoteCommands;
            numConnectedSockets = 0;

            bufferManager = new BufferManager((receiveBufferSize + sendBufferSize) * numberOfEventArgsForRecSend, receiveBufferSize + sendBufferSize);

            poolOfAcceptEventArgs = new SocketAsyncEventArgsPool(maxSimultaneousAcceptOps);
            poolOfRecSendEventArgs = new SocketAsyncEventArgsPool(numberOfEventArgsForRecSend);
            maxNumberAcceptedClients = new Semaphore(maxConnections, maxConnections);
        }