Exemplo n.º 1
0
 //------------------------------------------------------------------------------
 //
 // Method: TcpListener (constructor)
 //
 //------------------------------------------------------------------------------
 /// <summary>
 /// Initialises a new instance of the FrameworkAbstraction.TcpListener class.
 /// </summary>
 /// <param name="ipAddress">An IPAddress that represents the local IP address.</param>
 /// <param name="port">The port on which to listen for incoming connection attempts. </param>
 public TcpListener(System.Net.IPAddress ipAddress, int port)
 {
     disposed = false;
     tcpListener = new ExtendedTcpListener(ipAddress, port);
 }
Exemplo n.º 2
0
 //------------------------------------------------------------------------------
 //
 // Method: TcpListener (constructor)
 //
 //------------------------------------------------------------------------------
 /// <summary>
 /// Initialises a new instance of the FrameworkAbstraction.TcpListener class.
 /// </summary>
 /// <param name="ipAddress">An IPAddress that represents the local IP address.</param>
 /// <param name="port">The port on which to listen for incoming connection attempts. </param>
 public TcpListener(System.Net.IPAddress ipAddress, int port)
 {
     disposed    = false;
     tcpListener = new ExtendedTcpListener(ipAddress, port);
 }