Here
。
为了异步发送数据,您只需在工作标题上放置一个“ senddatagram”对象,该对象代表要发送的datagrampacket。 注意,您将使用datagram.receive(datagrampacket)和datagram.send(datagrampacket)。