Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        public bool Init()
        {
            comms = new TcpCommsClient {
            };

            return(comms?.Open(DmccServer, Port, Secure) == ConnectionResponse.Success);
        }
Ejemplo n.º 2
0
 public void Start()
 {
     if (Client != null && Server != null)
     {
         running     = true;
         clientComms = new TcpCommsClient {
             Client = Client
         };
         clientTask  = Task.Factory.StartNew(() => ClientRunLoop());
         serverComms = new TcpCommsServer {
             Client = Server
         };
         serverTask = Task.Factory.StartNew(() => ServerRunLoop());
     }
 }