Beispiel #1
0
 private void OnStopping(OTcpListener listener)
 {
     var handler = this.Stopping;
     if (handler != null)
     {
         handler(EventArgs.Empty, listener);
     }
 }
Beispiel #2
0
        private void OnStopping(OTcpListener listener)
        {
            var handler = this.Stopping;

            if (handler != null)
            {
                handler(EventArgs.Empty, listener);
            }
        }
Beispiel #3
0
 private void ListenerOnStopping(EventArgs eventArgs, OTcpListener oTcpListener)
 {
     log.Info("Listener stopping, stopping client.");
     this.Close();
 }
Beispiel #4
0
 public OTcpClient(TcpClient client, OTcpListener listener)
 {
     this.log.InfoFormat("Created from TcpClient {0}",client.Client.RemoteEndPoint);
     Client = client;
     listener.Stopping += ListenerOnStopping;
 }
Beispiel #5
0
 private void ListenerOnStopping(EventArgs eventArgs, OTcpListener oTcpListener)
 {
     log.Info("Listener stopping, stopping client.");
     this.Close();
 }
Beispiel #6
0
 public OTcpClient(TcpClient client, OTcpListener listener)
 {
     this.log.InfoFormat("Created from TcpClient {0}", client.Client.RemoteEndPoint);
     Client             = client;
     listener.Stopping += ListenerOnStopping;
 }