You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write a drop-in replacement for DatagramSocket which randomly either discards, duplicates, reorders or simply sends datagrams. Inherit from DatagramSocket.
When sending the datagrams "Hello" and "Goodbye" the following datagrams could be send.
Discard: "Goodbye"
Duplicate: "Hello", "Hello", "Goodbye"
Reorder: "Goodbye", "Hello"
Send: "Hello", "Goodbye"
Test your implementation with a (modified) UDP-client.
Write a drop-in replacement for DatagramSocket which randomly either discards, duplicates, reorders or simply sends datagrams. Inherit from DatagramSocket.
When sending the datagrams "Hello" and "Goodbye" the following datagrams could be send.
Discard: "Goodbye"
Duplicate: "Hello", "Hello", "Goodbye"
Reorder: "Goodbye", "Hello"
Send: "Hello", "Goodbye"
Test your implementation with a (modified) UDP-client.
(Hint, useful Java libraries: java.util.Random, java.net.DatagramSocket)
The text was updated successfully, but these errors were encountered: