コード例 #1
0
        public TcpClientHandler(TcpClient client, ICommunicationCallbackHandler callback )
        {
            Client = client;
            Callback = callback;

            Thread HandlerThread = new Thread(TcpClientWorker);
            HandlerThread.Start();
        }
コード例 #2
0
        public TcpListenerHandler(IPAddress address, Int16 port, ICommunicationCallbackHandler callback)
        {
            Address = address;
            Port = port;

            Callback = callback;

            Thread listenerWorkerThread = new Thread(ListenerWorker);
            listenerWorkerThread.Start();
        }