Take the 2-minute tour ×  So for our first assignment we made a
basic ftp program using TCP, now we have to modify it to use
UDP, also sending it to a router program (that we cannot modify,
but have the code to look at) that will randomly drop and delay
packets and handle it with a simple stop and wait protocol. But
that's not the problem.  I modified the Client and Server to use
UDP using the notes from my lab teacher (http://www.cs.concordia
.ca/~ste_mors/comp445/Assign2tutorial.ppt) and all I'm doing is
sending a packet and when I receive it on the other end print a
line of text. I followed the instructions in the slides, running
it on localhost (have no other machines to test with) and it
sends, and the router confirms it receives and forwards the
packet, but the server never prints the line of text. Knowing
that UDP drops packets a lot I made a while(true) loop that
sends packets forever, the server still does nothing.  Here's
the code so far: Client: http://pastebin.com/XdbxuJ9R Server:
http://pastebin.c