OsConstants.SockNonblock Property

Definition

Set the O_NONBLOCK file status flag on the file descriptor created by Os#socket(int,int,int) or Os#socketpair(int,int,int,java.io.FileDescriptor,java.io.FileDescriptor).

[Android.Runtime.Register("SOCK_NONBLOCK", ApiSince=29)]
public static int SockNonblock { get; }
[<Android.Runtime.Register("SOCK_NONBLOCK", ApiSince=29)>]
static member SockNonblock : int

Property Value

Attributes

Remarks

Set the O_NONBLOCK file status flag on the file descriptor created by Os#socket(int,int,int) or Os#socketpair(int,int,int,java.io.FileDescriptor,java.io.FileDescriptor).

Applications wishing to make use of this flag on older API versions may use #O_NONBLOCK instead. On Android, O_NONBLOCK and SOCK_NONBLOCK are the same value.

Java documentation for android.system.OsConstants.SOCK_NONBLOCK.

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