UDP for Text Transport
An Introduction with Examples in Java |
Prof. David Bernstein
|
Computer Science Department |
bernstdh@jmu.edu |
receive()
method blocksreceive()
method time-out periodically
if necssary (by calling the setSoTimeout()
method before receive()
)
UDPMessageSender
UDPMessageReceiver
DatagramPacket
that has an
appropriate IP address (i.e., starts
with 1110
so is in the range 224.0.0.0 -
239.255.255.255, but not below 224.0.0.255, all of which
are reserved for use by routing protocols)