Partager via


Os.SetsockoptTimeval(FileDescriptor, Int32, Int32, StructTimeval) Method

Definition

[Android.Runtime.Register("setsockoptTimeval", "(Ljava/io/FileDescriptor;IILandroid/system/StructTimeval;)V", "", ApiSince=29)]
public static void SetsockoptTimeval (Java.IO.FileDescriptor fd, int level, int option, Android.Systems.StructTimeval value);
[<Android.Runtime.Register("setsockoptTimeval", "(Ljava/io/FileDescriptor;IILandroid/system/StructTimeval;)V", "", ApiSince=29)>]
static member SetsockoptTimeval : Java.IO.FileDescriptor * int * int * Android.Systems.StructTimeval -> unit

Parameters

level
Int32
option
Int32
Attributes

Remarks

See setsockopt(2).

Only for use with option values that take a struct timeval such as OsConstants#SO_RCVTIMEO and OsConstants#SO_SNDTIMEO. Use with other options is likely to cause incorrect behavior.

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

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