Language

Os.Sendto Method

Definition

Overloads

Sendto(FileDescriptor, ByteBuffer, Int32, InetAddress, Int32)

See sendto(2).

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

Parameters

fd
FileDescriptor

The socket to send through.

buffer
ByteBuffer

The source buffer. Its position advances by the number of bytes sent.

flags
Int32

The flags that control sending the message.

inetAddress
InetAddress

The destination IP address.

port
Int32

The destination IP port number.

Returns

The number of bytes sent.

Attributes

Exceptions

Remarks

See sendto(2).

Java documentation for android.system.Os.sendto(java.io.FileDescriptor, java.nio.ByteBuffer, int, java.net.InetAddress, 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

Sendto(FileDescriptor, Byte[], Int32, Int32, Int32, SocketAddress)

See sendto(2).

[Android.Runtime.Register("sendto", "(Ljava/io/FileDescriptor;[BIIILjava/net/SocketAddress;)I", "", ApiSince=29)]
public static int Sendto(Java.IO.FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, Java.Net.SocketAddress? address);
[<Android.Runtime.Register("sendto", "(Ljava/io/FileDescriptor;[BIIILjava/net/SocketAddress;)I", "", ApiSince=29)>]
static member Sendto : Java.IO.FileDescriptor * byte[] * int * int * int * Java.Net.SocketAddress -> int

Parameters

fd
FileDescriptor

The socket to send through.

bytes
Byte[]

The source array containing the data to send.

byteOffset
Int32

The starting index in the source array.

byteCount
Int32

The maximum number of bytes to send.

flags
Int32

The flags that control sending the message.

address
SocketAddress

The destination socket address, or null to use a connected socket's destination.

Returns

The number of bytes sent.

Attributes

Remarks

See sendto(2).

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

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

Sendto(FileDescriptor, Byte[], Int32, Int32, Int32, InetAddress, Int32)

See sendto(2).

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

Parameters

fd
FileDescriptor

The socket to send through.

bytes
Byte[]

The source array containing the data to send.

byteOffset
Int32

The starting index in the source array.

byteCount
Int32

The maximum number of bytes to send.

flags
Int32

The flags that control sending the message.

inetAddress
InetAddress

The destination IP address.

port
Int32

The destination IP port number.

Returns

The number of bytes sent.

Attributes

Exceptions

Remarks

See sendto(2).

Java documentation for android.system.Os.sendto(java.io.FileDescriptor, byte[], int, int, int, java.net.InetAddress, 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