Java UDP Flashcards
1
Q
What does the Java API use for TCP communication?
A
java.net.DatagramPacket, java.net.DatagramSocket
2
Q
Describe java.net.DatagramPacket
A
Representing a UDP datagram with message bytes (array), length, remote address, remote port
3
Q
Describe java.net.DatagramSocket
A
Representing a UDP socket bound to a specific port
send() and receive() methods for datagram packets
Configurable receive timeout
connect() optionally associated with a single remote address