TCP-Lab

所属分类:网络编程
开发工具:C++
文件大小:0KB
下载次数:0
上传日期:2023-05-27 09:02:03
上 传 者sh-1993
说明:  斯坦福计算机网络实验室,优雅的TCP IP实现
(Stanford computer networking lab, an elegant TCP IP implementation)

文件列表:
.clang-format (634, 2022-10-22)
CMakeLists.txt (719, 2022-10-22)
apps/ (0, 2022-10-22)
apps/CMakeLists.txt (444, 2022-10-22)
apps/bidirectional_stream_copy.cc (3441, 2022-10-22)
apps/bidirectional_stream_copy.hh (282, 2022-10-22)
apps/bouncer.cc (2184, 2022-10-22)
apps/lab7.cc (11307, 2022-10-22)
apps/network_simulator.cc (13141, 2022-10-22)
apps/tcp_benchmark.cc (3237, 2022-10-22)
apps/tcp_ip_ethernet.cc (5060, 2022-10-22)
apps/tcp_ipv4.cc (5851, 2022-10-22)
apps/tcp_native.cc (1558, 2022-10-22)
apps/tcp_udp.cc (4608, 2022-10-22)
apps/tun.cc (1601, 2022-10-22)
apps/udp_tcpdump.cc (9816, 2022-10-22)
apps/webget.cc (2010, 2022-10-22)
doctests/ (0, 2022-10-22)
doctests/CMakeLists.txt (85, 2022-10-22)
doctests/address_dt.cc (594, 2022-10-22)
doctests/address_example_1.cc (59, 2022-10-22)
doctests/address_example_2.cc (47, 2022-10-22)
doctests/address_example_3.cc (67, 2022-10-22)
doctests/parser_dt.cc (234, 2022-10-22)
doctests/parser_example.cc (1005, 2022-10-22)
doctests/socket_dt.cc (424, 2022-10-22)
doctests/socket_example_1.cc (685, 2022-10-22)
doctests/socket_example_2.cc (809, 2022-10-22)
doctests/socket_example_3.cc (438, 2022-10-22)
etc/ (0, 2022-10-22)
etc/Doxyfile.in (1882, 2022-10-22)
etc/build_defs.cmake (249, 2022-10-22)
etc/build_type.cmake (1007, 2022-10-22)
etc/cflags.cmake (1315, 2022-10-22)
etc/clang_format.cmake (1177, 2022-10-22)
etc/clang_tidy.cmake (1919, 2022-10-22)
etc/cppcheck.cmake (679, 2022-10-22)
etc/cppreference-doxygen-web.tag.xml (1100140, 2022-10-22)
... ...

- [x] Lab 0: networking warmup - [x] Lab 1: stitching substrings into a byte stream - [x] Lab 2: the TCP receiver - [x] Lab 3: the TCP sender - [x] Lab 4: the TCP connection - [ ] Lab 5: the network interface - [ ] Lab 6: the IP router Pass all the tests of Lab 0-4 [My notes](https://github.com/huangrt01/CS-Notes/blob/master/Notes/Output/Computer-Networking-Lab-CS144-Stanford.md) For build prereqs, see [the VM setup instructions](https://web.stanford.edu/class/cs144/vm_howto). ## Sponge quickstart To set up your build directory: $ mkdir -p /build $ cd /build $ cmake .. **Note:** all further commands listed below should be run from the `build` dir. To build: $ make You can use the `-j` switch to build in parallel, e.g., $ make -j$(nproc) To test (after building; make sure you've got the [build prereqs](https://web.stanford.edu/class/cs144/vm_howto) installed!) $ make check The first time you run `make check`, it will run `sudo` to configure two [TUN](https://www.kernel.org/doc/Documentation/networking/tuntap.txt) devices for use during testing. ### build options You can specify a different compiler when you run cmake: $ CC=clang CXX=clang++ cmake .. You can also specify `CLANG_TIDY=` or `CLANG_FORMAT=` (see "other useful targets", below). Sponge's build system supports several different build targets. By default, cmake chooses the `Release` target, which enables the usual optimizations. The `Debug` target enables debugging and reduces the level of optimization. To choose the `Debug` target: $ cmake .. -DCMAKE_BUILD_TYPE=Debug The following targets are supported: - `Release` - optimizations - `Debug` - debug symbols and `-Og` - `RelASan` - release build with [ASan](https://en.wikipedia.org/wiki/AddressSanitizer) and [UBSan](https://developers.redhat.com/blog/2014/10/16/gcc-undefined-behavior-sanitizer-ubsan/) - `RelTSan` - release build with [ThreadSan](https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Thread_Sanitizer) - `DebugASan` - debug build with ASan and UBSan - `DebugTSan` - debug build with ThreadSan Of course, you can combine all of the above, e.g., $ CLANG_TIDY=clang-tidy-6.0 CXX=clang++-6.0 cmake .. -DCMAKE_BUILD_TYPE=Debug **Note:** if you want to change `CC`, `CXX`, `CLANG_TIDY`, or `CLANG_FORMAT`, you need to remove `build/CMakeCache.txt` and re-run cmake. (This isn't necessary for `CMAKE_BUILD_TYPE`.) ### other useful targets To generate documentation (you'll need `doxygen`; output will be in `build/doc/`): $ make doc To lint (you'll need `clang-tidy`): $ make -j$(nproc) tidy To run cppcheck (you'll need `cppcheck`): $ make cppcheck To format (you'll need `clang-format`): $ make format To see all available targets, $ make help

近期下载者

相关文件


收藏者