Språk

Os.GetsockoptTimeval(FileDescriptor, Int32, Int32) Method

Definition

[Android.Runtime.Register("getsockoptTimeval", "(Ljava/io/FileDescriptor;II)Landroid/system/StructTimeval;", "", ApiSince=29)]
public static Android.Systems.StructTimeval GetsockoptTimeval(Java.IO.FileDescriptor fd, int level, int option);
[<Android.Runtime.Register("getsockoptTimeval", "(Ljava/io/FileDescriptor;II)Landroid/system/StructTimeval;", "", ApiSince=29)>]
static member GetsockoptTimeval : Java.IO.FileDescriptor * int * int -> Android.Systems.StructTimeval

Parameters

fd
FileDescriptor

The socket whose option is read.

level
Int32

The protocol level that defines the option.

option
Int32

The socket option whose value has the native timeval layout.

Returns

The socket option value, expressed as seconds and microseconds.

Attributes

Remarks

See getsockopt(2).

Only for use with option values that return a struct timeval such as OsConstants#SO_RCVTIMEO and OsConstants#SO_SNDTIMEO. Use with other options may throw an IllegalArgumentException or return junk values.

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

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