Using only DatagramSocket, write programs A,B which together reliably transmits a string of length less than 255 characters. Program A accepts at startup a destination ip and port and a string, then transmits the string, somehow ensures that the string correctly arrived, says so and terminates. Program B repeatedly receives such strings and prints them.
Your transmission mechanism must guarantee that for each invocation of Program A with string S, Program B prints S exactly once.
Using only DatagramSocket, write programs A,B which together reliably transmits a string of length less than 255 characters. Program A accepts at startup a destination ip and port and a string, then transmits the string, somehow ensures that the string correctly arrived, says so and terminates. Program B repeatedly receives such strings and prints them.
Your transmission mechanism must guarantee that for each invocation of Program A with string S, Program B prints S exactly once.
Optional: Design the server, so that it can handle multiple concurrent clients.
Submit two java source files ReliableUDPClient.java and ReliableUDPServer.java