1、send(DatagramPacket p) 从此套接字发送数据报包 2、receive(DatagramPacket p) 从此套接字接收数据报包。 3、简单举例: 数据接收程序: //数据发送程序