Skip to content

Latest commit

Β 

History

History
56 lines (40 loc) Β· 1.76 KB

File metadata and controls

56 lines (40 loc) Β· 1.76 KB

Important!

πŸ“… This is the 2019 version of stanford cs144 lab.

⭐ The latest offical site : cs144

πŸ”Ž My solution is in branch solution.

πŸͺ Brach main for lab0, and the other is for the rest.

πŸ‘‰ And you can find the image of 2019-version course site here

πŸ˜™ thanks for kangyu, and thanks for cs144.

Why 2019?

From csdiy I found that most of the reference info is about sponge, which is the 2019 version of this lab.

So it is more easy to solve the envir problem when i choose this version as the project.

And also most of the solution on the internet is about sponge

About solution

solutions are all in apps/ and libsponge/, this repo only includes the TCP implementation part.

Updating:

  • lab0
    • add apps/webget.cc
    • add libsponge/byte_stream.hh
    • add libsponge/byte_stream.cc
  • lab1
    • add libsponge/stream_reassembler.hh
    • add libsponge/stream_reassembler.cc
  • lab2
    • add libsponge/tcp_receiver.hh
    • add libsponge/tcp_receiver.cc
    • update libsponge/stream_reassembler.hh
    • update libsponge/stream_reassembler.cc
    • add libsponge/wrapping_integers.hh
    • add libsponge/wrapping_integers.cc
  • lab3
    • add libsponge/tcp_sender.hh
    • add libsponge/tcp_sender.cc
  • lab4
    • add libsponge/tcp_connection.hh
    • add libsponge/tcp_connection.cc

More details

  • install libpcap-dev from apt if needed.
  • add #include <stdexcept> in /libsponge/util/buffer.hh if needed.
  • add permission for /tests/webget_t.sh if needed
  • i use doxygen to generate comments.
  • for debugging u can view the source code in tests/.