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