Android.OS.ParcelFileDescriptor.FromSocket Method
Create a new ParcelFileDescriptor from the specified Socket.

Syntax

[Android.Runtime.Register("fromSocket", "(Ljava/net/Socket;)Landroid/os/ParcelFileDescriptor;", "")]
public static ParcelFileDescriptor FromSocket (Java.Net.Socket socket)

Parameters

socket
The Socket whose FileDescriptor is used to create a new ParcelFileDescriptor.

Returns

Documentation for this section has not yet been entered.

Remarks

Create a new ParcelFileDescriptor from the specified Socket. The new ParcelFileDescriptor holds a dup of the original FileDescriptor in the Socket, so you must still close the Socket as well as the new ParcelFileDescriptor.

[Android Documentation]

Requirements

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