Share via


DatagramSocketImpl.Send(DatagramPacket) Method

Definition

Sends a datagram packet.

[Android.Runtime.Register("send", "(Ljava/net/DatagramPacket;)V", "GetSend_Ljava_net_DatagramPacket_Handler")]
protected abstract void Send (Java.Net.DatagramPacket? p);
[<Android.Runtime.Register("send", "(Ljava/net/DatagramPacket;)V", "GetSend_Ljava_net_DatagramPacket_Handler")>]
abstract member Send : Java.Net.DatagramPacket -> unit

Parameters

p
DatagramPacket

the packet to be sent.

Attributes

Exceptions

if an error occurs while sending the packet.

Remarks

Sends a datagram packet. The packet contains the data and the destination address to send the packet to.

Java documentation for java.net.DatagramSocketImpl.send(java.net.DatagramPacket).

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