Language

Os.Recvfrom Method

Definition

Overloads

Recvfrom(FileDescriptor, ByteBuffer, Int32, InetSocketAddress)

[Android.Runtime.Register("recvfrom", "(Ljava/io/FileDescriptor;Ljava/nio/ByteBuffer;ILjava/net/InetSocketAddress;)I", "")]
public static int Recvfrom(Java.IO.FileDescriptor? fd, Java.Nio.ByteBuffer? buffer, int flags, Java.Net.InetSocketAddress? srcAddress);
[<Android.Runtime.Register("recvfrom", "(Ljava/io/FileDescriptor;Ljava/nio/ByteBuffer;ILjava/net/InetSocketAddress;)I", "")>]
static member Recvfrom : Java.IO.FileDescriptor * Java.Nio.ByteBuffer * int * Java.Net.InetSocketAddress -> int

Parameters

fd
FileDescriptor

The socket to receive from.

buffer
ByteBuffer

The destination buffer. Data starts at its current position and is limited to its remaining space.

flags
Int32

The flags that control receiving the message.

srcAddress
InetSocketAddress

Receives the sender's IP address and port, if an address object is supplied.

Returns

The message byte count reported by the receive operation.

Attributes

Exceptions

Remarks

See recvfrom(2).

Java documentation for android.system.Os.recvfrom(java.io.FileDescriptor, java.nio.ByteBuffer, int, java.net.InetSocketAddress).

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

Recvfrom(FileDescriptor, Byte[], Int32, Int32, Int32, InetSocketAddress)

[Android.Runtime.Register("recvfrom", "(Ljava/io/FileDescriptor;[BIIILjava/net/InetSocketAddress;)I", "")]
public static int Recvfrom(Java.IO.FileDescriptor? fd, byte[]? bytes, int byteOffset, int byteCount, int flags, Java.Net.InetSocketAddress? srcAddress);
[<Android.Runtime.Register("recvfrom", "(Ljava/io/FileDescriptor;[BIIILjava/net/InetSocketAddress;)I", "")>]
static member Recvfrom : Java.IO.FileDescriptor * byte[] * int * int * int * Java.Net.InetSocketAddress -> int

Parameters

fd
FileDescriptor

The socket to receive from.

bytes
Byte[]

The destination array for the received data.

byteOffset
Int32

The starting index in the destination array.

byteCount
Int32

The maximum number of bytes to store.

flags
Int32

The flags that control receiving the message.

srcAddress
InetSocketAddress

Receives the sender's IP address and port, if an address object is supplied.

Returns

The message byte count reported by the receive operation.

Attributes

Exceptions

Remarks

See recvfrom(2).

Java documentation for android.system.Os.recvfrom(java.io.FileDescriptor, byte[], int, int, int, java.net.InetSocketAddress).

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