Inheritance: ConnectorServer
Ejemplo n.º 1
0
        /// <summary>
        /// Creates the listener thread
        /// </summary>
        /// <param name="server">The server object</param>
        /// <param name="socket">The socket (should already be bound)</param>
        public ConnectionListener(ConnectorServerImpl server,
                                  TcpListener socket)
        {
            _server     = server;
            _socket     = socket;
            _thisThread = new Thread(Run)
            {
                Name = "ConnectionListener", IsBackground = false
            };
            //TODO: thread pool

            /*            _threadPool =
             *              new ThreadPoolExecutor
             *              (server.getMinWorkers(),
             *               server.getMaxWorkers(),
             *               30, //idle time timeout
             *               TimeUnit.SECONDS,
             *               new ArrayBlockingQueue<Runnable>(
             *                       INTERNAL_QUEUE_SIZE,
             *                       true)); //fair*/
        }
Ejemplo n.º 2
0
 public ConnectionProcessor(ConnectorServerImpl server,
                            RemoteFrameworkConnection connection)
 {
     _server     = server;
     _connection = connection;
 }