class DatagramPacket -- used to build packets of information
to send over datagram sockets. Examples:
DatagramPacket p1, p2;
byte[] data1 = new byte[500];
p1 = new DatagramPacket(data1, data1.length);
// creates a packet for storing up to 500 bytes of data
// will be used to receive a datagram packet
String message = "Hello, World";
byte[] data2 = message.getBytes(); // convert string to byte array
p2 = new DatagramPacket(data2, data2.length,
InetAddress.getLocalHost(), 1234);
// creates a packet of outgoing data (the "hello world" message),
// setting the port number to 1234