Skip to content

3. Write programs to reliably communicate over UDP.  #4

Description

@IMarnild

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions