You can download all of source code files as a single tar archive (compressed with gzip) which you can easily unpack on borg or you can get the files one by one:
The program code here is adapted from Lab 3: Implementing a Reliable Transport Protocol at the Kurose and Ross companion website [citation record for Kurose and Ross].