Os.Recvfrom Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Recvfrom(FileDescriptor, ByteBuffer, Int32, InetSocketAddress) |
See recvfrom(2). |
| Recvfrom(FileDescriptor, Byte[], Int32, Int32, Int32, InetSocketAddress) |
See recvfrom(2). |
Recvfrom(FileDescriptor, ByteBuffer, Int32, InetSocketAddress)
See recvfrom(2).
[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
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).
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)
See recvfrom(2).
[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
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).
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.