Java UDP Flashcards

1
Q

What does the Java API use for TCP communication?

A

java.net.DatagramPacket, java.net.DatagramSocket

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Describe java.net.DatagramPacket

A

Representing a UDP datagram with message bytes (array), length, remote address, remote port

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly