예제 #1
0
파일: Server.cs 프로젝트: Tirasa/ConnId
 /// <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*/
 }
예제 #2
0
파일: Server.cs 프로젝트: Tirasa/ConnId
 public ConnectionProcessor(ConnectorServerImpl server,
     RemoteFrameworkConnection connection)
 {
     _server = server;
     _connection = connection;
 }