Beispiel #1
0
 /// <param name="port">TCP port where to start the server at</param>
 /// <param name="program">RPC program corresponding to the server</param>
 /// <param name="workercount">Number of worker threads</param>
 public SimpleTcpServer(int port, RpcProgram program, int workercount)
 {
     // Will be set after server starts
     this.port        = port;
     this.rpcProgram  = program;
     this.workerCount = workercount;
 }
Beispiel #2
0
 public SimpleUdpServer(int port, SimpleChannelUpstreamHandler program, int workerCount
                        )
 {
     // Will be set after server starts
     this.port        = port;
     this.rpcProgram  = program;
     this.workerCount = workerCount;
 }