Java.Net.InetSocketAddress Members

The members of Java.Net.InetSocketAddress are listed below.

See Also: Inherited members from Java.Net.SocketAddress

Public Constructors

Creates a socket endpoint with the given port number port and no specified address.
Creates a socket endpoint with the given port number port and address.
Creates a socket endpoint with the given port number port and the hostname host.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
AddressInetAddress. Returns this socket address' address.
[read-only]
HostNamestring. Returns the hostname, doing a reverse DNS lookup on the InetAddress if no hostname string was provided at construction time.
[read-only]
HostStringstring. Returns the hostname if known, or the result of InetAddress.getHostAddress.
[read-only]
IsUnresolvedbool. Returns whether this socket address is unresolved or not.
[read-only]
Portint. Returns this socket address' port.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
CreateUnresolved(string, int) : InetSocketAddress
Creates an InetSocketAddress without trying to resolve the hostname into an InetAddress.
override
Equals(Java.Lang.Object) : bool
Compares two socket endpoints and returns true if they are equal.
override
GetHashCode() : int
Returns an integer hash code for this object.