Beispiel #1
0
 public RpcClient()
 {
     taskScanner             = new RpcTaskScanner();
     userProcessors          = new ConcurrentDictionary <Type, UserProcessor>();
     connectionEventHandler  = new RpcConnectionEventHandler(switches());
     connectionEventListener = new ConnectionEventListener();
 }
Beispiel #2
0
 public virtual void addConnectionEventListener(ConnectionEventListener listener)
 {
     if (listener == null)
     {
         throw new System.ArgumentException("Listener is null");
     }
     listeners.Add(listener);
 }
Beispiel #3
0
 public Connection(TcpClient c, ConnectionEventListener l)
 {
     this.client             = c;
     this.stream             = c.GetStream();
     this.handle             = l;
     this.message_delta_time = 0;
     this.connected          = c.Connected;
     this.ip_endpoint        = this.client.Client.RemoteEndPoint.ToString();
 }