ServerSocket.GetOption(ISocketOption) Method

Definition

Returns the value of a socket option.

[Android.Runtime.Register("getOption", "(Ljava/net/SocketOption;)Ljava/lang/Object;", "GetGetOption_Ljava_net_SocketOption_Handler", ApiSince=33)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public virtual Java.Lang.Object? GetOption (Java.Net.ISocketOption? name);
[<Android.Runtime.Register("getOption", "(Ljava/net/SocketOption;)Ljava/lang/Object;", "GetGetOption_Ljava_net_SocketOption_Handler", ApiSince=33)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member GetOption : Java.Net.ISocketOption -> Java.Lang.Object
override this.GetOption : Java.Net.ISocketOption -> Java.Lang.Object

Parameters

name
ISocketOption

The socket option

Returns

The value of the socket option.

Attributes

Remarks

Returns the value of a socket option.

Added in 9.

Java documentation for java.net.ServerSocket.getOption(java.net.SocketOption<T>).

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