public TcpClientHandler(TcpClient client, ICommunicationCallbackHandler callback ) { Client = client; Callback = callback; Thread HandlerThread = new Thread(TcpClientWorker); HandlerThread.Start(); }
public TcpListenerHandler(IPAddress address, Int16 port, ICommunicationCallbackHandler callback) { Address = address; Port = port; Callback = callback; Thread listenerWorkerThread = new Thread(ListenerWorker); listenerWorkerThread.Start(); }