Java.Net.ServerSocket Members

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

See Also: Inherited members from Java.Lang.Object

Public Constructors

Constructs a new unbound ServerSocket.
Constructs a new ServerSocket instance bound to the given port.
Constructs a new ServerSocket instance bound to the given port.
Constructs a new ServerSocket instance bound to the given localAddress and port.

Protected Constructors

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

Public Properties

[read-only]
ChannelJava.Nio.Channels.ServerSocketChannel. Returns this socket's ServerSocketChannel, if one exists.
[read-only]
InetAddressInetAddress. Gets the local IP address of this server socket if this socket has ever been bound, null otherwise.
[read-only]
IsBoundbool. Returns whether this server socket is bound to a local address and port or not.
[read-only]
IsClosedbool. Returns whether this server socket is closed or not.
[read-only]
LocalPortint. Gets the local port of this server socket or -1 if the socket is not bound.
[read-only]
LocalSocketAddressSocketAddress. Gets the local socket address of this server socket or null if the socket is unbound.
ReceiveBufferSizeint. Returns this socket's SocketOptions.SoRcvbuf.
ReuseAddressbool. Gets the value of the socket option SocketOptions.SO_REUSEADDR.
SoTimeoutint. Gets the socket SocketOptions.SoTimeout.

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

Accept() : Socket
Waits for an incoming request and blocks until the connection is opened.
AcceptAsync() : System.Threading.Tasks.Task<Socket>
Documentation for this section has not yet been entered.
Bind(SocketAddress)
Binds this server socket to the given local socket address with a maximum backlog of 50 unaccepted connections.
Bind(SocketAddress, int)
Binds this server socket to the given local socket address.
Close()
Closes this server socket and its implementation.
SetPerformancePreferences(int, int, int)
Sets performance preferences for connection time, latency and bandwidth.
static
SetSocketFactory(ISocketImplFactory)
Sets the server socket implementation factory of this instance.

Protected Methods

ImplAccept(Socket)
Invokes the server socket implementation to accept a connection on the given socket aSocket.
ImplAcceptAsync(Socket) : System.Threading.Tasks.Task
Documentation for this section has not yet been entered.