Example #1
0
 public Task Start()
 {
     ConnectionListener = new Communication.Connection();
     ConnectionListener.Listen(LocalIPEndPoint);
     return(Task.Factory.StartNew(() => StartToReceiveConnections()));
 }
Example #2
0
        void HandleNewRemoteConnection(Communication.Connection remoteConnection)
        {
            var communicator = new Communicator(remoteConnection);

            communicator.Comunicate();
        }