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 check
You will see that they all fail.
-
Edit the files
yourcode/udp-sender.cc
andyourcode/udp-receiver.cc
per the instructions in each file, using theSocket
andAddress
objects. You may need to look atsrc/socket.hh
andsrc/address.hh
for these APIs. -
When the tests pass locally, push your version to GitHub and open a pull request.