DatagramChannel.SendAsync(ByteBuffer, SocketAddress) 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.
Runs the synchronous send operation in a task to send the remaining buffer bytes as one datagram.
public System.Threading.Tasks.Task<int> SendAsync(Java.Nio.ByteBuffer? src, Java.Net.SocketAddress? target);
member this.SendAsync : Java.Nio.ByteBuffer * Java.Net.SocketAddress -> System.Threading.Tasks.Task<int>
Parameters
- src
- ByteBuffer
The buffer containing the datagram from its current position to its limit. Its position advances by the number of bytes sent; its limit is unchanged.
- target
- SocketAddress
The address to which the datagram is sent.
Returns
A task whose result is the number of bytes sent: the buffer's remaining byte count, or zero when this channel is non-blocking and has insufficient output space.
Remarks
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.