Android.OS.ParcelFileDescriptor.CreateReliableSocketPair Method
Create two ParcelFileDescriptors structured as a pair of sockets connected to each other.

Syntax

[Android.Runtime.Register("createReliableSocketPair", "()[Landroid/os/ParcelFileDescriptor;", "")]
public static ParcelFileDescriptor[] CreateReliableSocketPair ()

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOException

Remarks

Create two ParcelFileDescriptors structured as a pair of sockets connected to each other. The two sockets are indistinguishable.

Both ends have the ability to deliver an error message through ParcelFileDescriptor.CloseWithError(string) which can be detected by the other end calling ParcelFileDescriptor.CheckError, usually after detecting an EOF. This can also be used to detect remote crashes.

[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