Exemple #1
0
    private void OnSomeOneConnected(NetworkStream networkStream_0, EndPoint endPoint_0)
    {
        networkStream_0.WriteTimeout = this.int_4;
        Interface5 interface2 = this.vmethod_2(networkStream_0, (IPEndPoint)endPoint_0);

        if (Class134.smethod_0().object_0 == null)
        {
            networkStream_0.Close();
            networkStream_0.Dispose();
        }
        else
        {
            this.class142_0.method_4(interface2);
            this.eventSafeTrigger_0.Action <IPEndPoint>("SomeOneConnected", this.SomeOneConnected, interface2.GetIPEndPoint());
            this.ReceiveFirstMessage(interface2);
        }
    }
Exemple #2
0
 public virtual void Initialize()
 {
     this.cbGeneric_0 = new CbGeneric <Interface5, IMessageHandler>(this.OnMessageReceived);
     this.class39_0   = new AgileTcpListener(this.int_0, this.TfuhhomjeB, this.string_1, this.bool_3, this.bool_4, this.emptyAgileLogger_0, this.fileAgileLogger_0, this.class119_0);
     this.class39_0.method_1(this);
     this.class39_0.TcpConnectionEstablished += new CbGeneric <NetworkStream, EndPoint>(this.OnSomeOneConnected);
     this.class39_0.method_5(this.int_3);
     this.class39_0.method_3(this.int_2);
     this.class142_0.Event_0 += new CbSimpleInt(this.OnConnectionCountChanged);
     this.class142_0.Event_1 += new CbGeneric <Interface5>(this.OnSomeOneDisconnected);
     this.class142_0.method_2(this.fileAgileLogger_0);
     this.class39_0.method_8();
     this.bool_0 = false;
     if (!this.imethod_31())
     {
         this.int_0 = -1;
     }
     Class134.smethod_0().WfJlzZyoUa(this.TfuhhomjeB, this.fileAgileLogger_0);
 }