Esempio n. 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();
 }
Esempio n. 2
0
 public TCPEnd(string ip, int port, ITCPEndListener listener)
 {
     this.ip       = ip;
     this.port     = port;
     this.listener = listener;
 }
Esempio n. 3
0
 public TCPClient(string ip, int port, ITCPEndListener listener) :
     base(ip, port, listener)
 {
 }