Language

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

fd
FileDescriptor

The socket whose option is changed.

level
Int32

The protocol level that defines the option.

option
Int32

The socket option whose value has the native timeval layout.

value
StructTimeval

The option value, expressed as seconds and microseconds.

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