/// <summary> /// /// </summary> public bool Init() { comms = new TcpCommsClient { }; return(comms?.Open(DmccServer, Port, Secure) == ConnectionResponse.Success); }
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()); } }