예제 #1
0
 // Use this for initialization
 public TCPServer(string ip, int port, ITCPEndListener listener) :
     base(ip, port, listener)
 {
     // Start TcpServer background thread
     tcpListenerThread = new Thread(new ThreadStart(ListenForIncommingRequests));
     tcpListenerThread.IsBackground = true;
     tcpListenerThread.Start();
 }
예제 #2
0
 public TCPEnd(string ip, int port, ITCPEndListener listener)
 {
     this.ip       = ip;
     this.port     = port;
     this.listener = listener;
 }
예제 #3
0
 public TCPClient(string ip, int port, ITCPEndListener listener) :
     base(ip, port, listener)
 {
 }