type
UdpPacket
UdpPacket encapsulates an IpAddr, port, and payload of bytes to send or receive from a UdpSocket.
constructors
make |
Construct a new UdpPacket. |
---|
fields
addr |
The send or receive IpAddr. |
---|---|
data |
The payload to send or received. |
port |
The send or receive port number. |