Language

Os.Socketpair(Int32, Int32, Int32, FileDescriptor, FileDescriptor) Method

Definition

[Android.Runtime.Register("socketpair", "(IIILjava/io/FileDescriptor;Ljava/io/FileDescriptor;)V", "")]
public static void Socketpair(int domain, int type, int protocol, Java.IO.FileDescriptor? fd1, Java.IO.FileDescriptor? fd2);
[<Android.Runtime.Register("socketpair", "(IIILjava/io/FileDescriptor;Ljava/io/FileDescriptor;)V", "")>]
static member Socketpair : int * int * int * Java.IO.FileDescriptor * Java.IO.FileDescriptor -> unit

Parameters

domain
Int32

The address family for the socket pair.

type
Int32

The socket type and any supported socket-creation flags.

protocol
Int32

The protocol within the selected family, or 0 for its default protocol.

fd1
FileDescriptor

Receives the descriptor for one endpoint of the connected pair.

fd2
FileDescriptor

Receives the descriptor for the other endpoint of the connected pair.

Attributes

Exceptions

Remarks

See socketpair(2).

Java documentation for android.system.Os.socketpair(int, int, int, java.io.FileDescriptor, java.io.FileDescriptor).

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