Java.Net.ServerSocket.SetSocketFactory Method
Sets the server socket implementation factory of this instance.

Syntax

[Android.Runtime.Register("setSocketFactory", "(Ljava/net/SocketImplFactory;)V", "")]
public static void SetSocketFactory (ISocketImplFactory aFactory)

Parameters

aFactory
the streaming socket factory to be used for further socket instantiations.

Exceptions

TypeReason
Java.IO.IOExceptionif the factory could not be set or is already set.

Remarks

Sets the server socket implementation factory of this instance. This method may only be invoked with sufficient security privilege and only once during the application lifetime.

[Android Documentation]

Requirements

Namespace: Java.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1