Customizing UDP Sockets
An Introduction with Examples in Java |
Prof. David Bernstein
|
Computer Science Department |
bernstdh@jmu.edu |
DatagramSocket
to both send and
receive but our sender and receiver will need
different capabilitiesDatagramSocket
class are
inappropriate for this applicationsetSoTimeout()
receive()
in an ackThread
send()
send()
for re-sends in the
catch
for the
SocketTimeoutException
receive()
send()
after receive()
returnsreceive()
stops blockingreceive()
send()
in an ackThread
after
receive()
returnsAppropriate when the Transmitter/Receiver are the Same