Os.Sendto 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
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
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).
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
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).
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
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).
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.