Expected completion time: <3 hours
Your mission, should you choose to accept it, is to make a simple UDP sender that sends a datagram containing the payload "Hello, world.", and a UDP receiver that prints out the payload of the first datagram it receives.
Suggested platform: Recent GNU/Linux with g++ 4.8 or later. You may need to set up a VM. (The code may also run on OS X.)
-
Initialize the build system with:
./autogen.sh && ./configure -
Compile the template code with:
$ make -
Run the tests with:
$ make checkYou will see that they all fail.
-
Edit the files
yourcode/udp-sender.ccandyourcode/udp-receiver.ccper the instructions in each file, using theSocketandAddressobjects. You may need to look atsrc/socket.hhandsrc/address.hhfor these APIs. -
When the tests pass locally, push your version to GitHub and open a pull request.