Partager via


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

level
Int32
option
Int32

Returns

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