Udostępnij za pośrednictwem


ServerSocket.SupportedOptions Method

Definition

Returns a set of the socket options supported by this server socket.

[Android.Runtime.Register("supportedOptions", "()Ljava/util/Set;", "GetSupportedOptionsHandler", ApiSince=33)]
public virtual System.Collections.Generic.ICollection<Java.Net.ISocketOption>? SupportedOptions ();
[<Android.Runtime.Register("supportedOptions", "()Ljava/util/Set;", "GetSupportedOptionsHandler", ApiSince=33)>]
abstract member SupportedOptions : unit -> System.Collections.Generic.ICollection<Java.Net.ISocketOption>
override this.SupportedOptions : unit -> System.Collections.Generic.ICollection<Java.Net.ISocketOption>

Returns

A set of the socket options supported by this socket. This set may be empty if the socket's SocketImpl cannot be created.

Attributes

Remarks

Returns a set of the socket options supported by this server socket.

This method will continue to return the set of options even after the socket has been closed.

Added in 9.

Java documentation for java.net.ServerSocket.supportedOptions().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to