|
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 application
setSoTimeout()
receive() in an ackThread
send()
send() for re-sends in the
catch for the
SocketTimeoutException
receive()
send() after receive() returnsreceive() stops blocking
receive()
send() in an ackThread after
receive() returns