Java.Net.DatagramSocket.SetDatagramSocketImplFactory Method
Sets the socket implementation factory.

Syntax

[Android.Runtime.Register("setDatagramSocketImplFactory", "(Ljava/net/DatagramSocketImplFactory;)V", "")]
public static void SetDatagramSocketImplFactory (IDatagramSocketImplFactory fac)

See Also

IDatagramSocketImplFactory

Parameters

fac
the socket factory to use.

Exceptions

TypeReason
Java.IO.IOExceptionif the factory has already been set.

Remarks

Sets the socket implementation factory. This may only be invoked once over the lifetime of the application. This factory is used to create a new datagram socket implementation.

[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