8 [global::__DynamicallyInvokable]
12 [global::__DynamicallyInvokable]
16 [global::__DynamicallyInvokable]
23 internal const int AnyPort = 0;
31 [global::__DynamicallyInvokable]
34 [global::__DynamicallyInvokable]
43 [global::__DynamicallyInvokable]
46 [global::__DynamicallyInvokable]
51 [global::__DynamicallyInvokable]
61 [global::__DynamicallyInvokable]
64 [global::__DynamicallyInvokable]
69 [global::__DynamicallyInvokable]
72 if (!ValidationHelper.ValidateTcpPort(value))
87 [global::__DynamicallyInvokable]
90 if (!ValidationHelper.ValidateTcpPort(port))
107 [global::__DynamicallyInvokable]
114 if (!ValidationHelper.ValidateTcpPort(port))
124 [global::__DynamicallyInvokable]
133 [global::__DynamicallyInvokable]
144 [global::__DynamicallyInvokable]
151 if (socketAddress.
Size < 8)
153 throw new ArgumentException(SR.GetString(
"net_InvalidSocketAddressSize", socketAddress.GetType().FullName, GetType().FullName),
"socketAddress");
155 return socketAddress.GetIPEndPoint();
162 [global::__DynamicallyInvokable]
163 public override bool Equals(
object comparand)
169 if (((
IPEndPoint)comparand).m_Address.Equals(m_Address))
171 return ((
IPEndPoint)comparand).m_Port == m_Port;
178 [global::__DynamicallyInvokable]
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
override SocketAddress Serialize()
Serializes endpoint information into a T:System.Net.SocketAddress instance.
static readonly IPAddress Any
Provides an IP address that indicates that the server must listen for client activity on all network ...
The exception that is thrown when the value of an argument is outside the allowable range of values a...
unsafe override string ToString()
Converts an Internet address to its standard notation.
override int GetHashCode()
Returns a hash value for an IP address.
AddressFamily AddressFamily
Gets the address family of the IP address.
override bool Equals(object comparand)
Determines whether the specified T:System.Object is equal to the current T:System....
Provides an Internet Protocol (IP) address.
AddressFamily Family
Gets the T:System.Net.Sockets.AddressFamily enumerated value of the current T:System....
static readonly IPAddress IPv6Any
The M:System.Net.Sockets.Socket.Bind(System.Net.EndPoint) method uses the F:System....
AddressFamily
Specifies the addressing scheme that an instance of the T:System.Net.Sockets.Socket class can use.
IPAddress Address
Gets or sets the IP address of the endpoint.
int Port
Gets or sets the port number of the endpoint.
override int GetHashCode()
Returns a hash value for a T:System.Net.IPEndPoint instance.
Stores serialized information from T:System.Net.EndPoint derived classes.
Represents a network endpoint as an IP address and a port number.
const int MaxPort
Specifies the maximum value that can be assigned to the P:System.Net.IPEndPoint.Port property....
IPEndPoint(long address, int port)
Initializes a new instance of the T:System.Net.IPEndPoint class with the specified address and port n...
The exception that is thrown when one of the arguments provided to a method is not valid.
IPEndPoint(IPAddress address, int port)
Initializes a new instance of the T:System.Net.IPEndPoint class with the specified address and port n...
override EndPoint Create(SocketAddress socketAddress)
Creates an endpoint from a socket address.
Specifies that the class can be serialized.
const int MinPort
Specifies the minimum value that can be assigned to the P:System.Net.IPEndPoint.Port property....
Identifies a network address. This is an abstract class.
override string ToString()
Returns the IP address and port number of the specified endpoint.
int Size
Gets the underlying buffer size of the T:System.Net.SocketAddress.