Exemplo n.º 1
0
		// Summary:
		//     Initializes a new instance of the System.Net.IPEndPoint class with the specified
		//     address and port number.
		//
		// Parameters:
		//   address:
		//     An System.Net.IPAddress.
		//
		//   port:
		//     The port number associated with the address, or 0 to specify any available
		//     port. port is in host order.
		//
		// Exceptions:
		//   System.ArgumentOutOfRangeException:
		//     port is less than System.Net.IPEndPoint.MinPort.-or- port is greater than
		//     System.Net.IPEndPoint.MaxPort.-or- address is less than 0 or greater than
		//     0x00000000FFFFFFFF.
		public IPEndPoint(IPAddress address, int port);
Exemplo n.º 2
0
		//
		// Summary:
		//     Initializes a new instance of the System.Net.Sockets.TcpListener class that
		//     listens for incoming connection attempts on the specified local IP address
		//     and port number.
		//
		// Parameters:
		//   localaddr:
		//     An System.Net.IPAddress that represents the local IP address.
		//
		//   port:
		//     The port on which to listen for incoming connection attempts.
		//
		// Exceptions:
		//   System.ArgumentNullException:
		//     localaddr is null.
		//
		//   System.ArgumentOutOfRangeException:
		//     port is not between System.Net.IPEndPoint.MinPort and System.Net.IPEndPoint.MaxPort.
		public TcpListener(IPAddress localaddr, int port);
Exemplo n.º 3
0
		//
		// Summary:
		//     Determines whether a string is a valid IP address.
		//
		// Parameters:
		//   ipString:
		//     The string to validate.
		//
		//   address:
		//     The System.Net.IPAddress version of the string.
		//
		// Returns:
		//     true if ipString is a valid IP address; otherwise, false.
		public static bool TryParse(string ipString, out IPAddress address);
Exemplo n.º 4
0
		//
		// Summary:
		//     Indicates whether the specified IP address is the loopback address.
		//
		// Parameters:
		//   address:
		//     An IP address.
		//
		// Returns:
		//     true if address is the loopback address; otherwise, false.
		public static bool IsLoopback(IPAddress address);
Exemplo n.º 5
0
		//
		// Summary:
		//     Connects the client to a remote TCP host using the specified IP address and
		//     port number.
		//
		// Parameters:
		//   address:
		//     The System.Net.IPAddress of the host to which you intend to connect.
		//
		//   port:
		//     The port number to which you intend to connect.
		//
		// Exceptions:
		//   System.ArgumentNullException:
		//     The address parameter is null.
		//
		//   System.ArgumentOutOfRangeException:
		//     The port is not between System.Net.IPEndPoint.MinPort and System.Net.IPEndPoint.MaxPort.
		//
		//   System.Net.Sockets.SocketException:
		//     An error occurred when accessing the socket. See the Remarks section for
		//     more information.
		//
		//   System.ObjectDisposedException:
		//     System.Net.Sockets.TcpClient is closed.
		public void Connect(IPAddress address, int port);
Exemplo n.º 6
0
		//
		// Summary:
		//     Begins an asynchronous request for a remote host connection. The remote host
		//     is specified by an System.Net.IPAddress array and a port number (System.Int32).
		//
		// Parameters:
		//   addresses:
		//     At least one System.Net.IPAddress that designates the remote hosts.
		//
		//   port:
		//     The port number of the remote hosts.
		//
		//   requestCallback:
		//     An System.AsyncCallback delegate that references the method to invoke when
		//     the operation is complete.
		//
		//   state:
		//     A user-defined object that contains information about the connect operation.
		//     This object is passed to the requestCallback delegate when the operation
		//     is complete.
		//
		// Returns:
		//     An System.IAsyncResult object that references the asynchronous connection.
		//
		// Exceptions:
		//   System.ArgumentNullException:
		//     The addresses parameter is null.
		//
		//   System.Net.Sockets.SocketException:
		//     An error occurred when attempting to access the socket. See the Remarks section
		//     for more information.
		//
		//   System.ObjectDisposedException:
		//     The System.Net.Sockets.Socket has been closed.
		//
		//   System.Security.SecurityException:
		//     A caller higher in the call stack does not have permission for the requested
		//     operation.
		//
		//   System.ArgumentOutOfRangeException:
		//     The port number is not valid.
		public IAsyncResult BeginConnect(IPAddress[] addresses, int port, AsyncCallback requestCallback, object state);