Exemplo n.º 1
0
 public JsonCprServer()
 {
     _cometServer = new CometServer();
     _cometServer.AddRequestPath("/");
     _jsonRpcServer = new JsonRpcServer();
     _jsonRpcServer.RegisterMethods(this, "/");
     _clientPaths = new Set<string>();
     _pendingCalls = new Dictionary<string, JsonCprCallback>();
 }
Exemplo n.º 2
0
 public CometRequestHandler(CometServer cometServer, TcpClient context)
 {
     CometServer = cometServer;
     _context = context;
     _stream = context.GetStream();
 }