{"id":13471208,"url":"https://github.com/comzyh/TCP-Lab","last_synced_at":"2025-03-26T13:30:54.957Z","repository":{"id":44350340,"uuid":"277147095","full_name":"comzyh/TCP-Lab","owner":"comzyh","description":"Stanford cs144 lab，an elegant TCP/IP implementation","archived":false,"fork":false,"pushed_at":"2020-09-02T16:55:14.000Z","size":388,"stargazers_count":21,"open_issues_count":0,"forks_count":24,"subscribers_count":1,"default_branch":"comzyh","last_synced_at":"2024-10-30T02:59:00.706Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/comzyh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-04T16:32:10.000Z","updated_at":"2024-05-13T12:45:39.000Z","dependencies_parsed_at":"2022-08-30T03:10:45.033Z","dependency_job_id":null,"html_url":"https://github.com/comzyh/TCP-Lab","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comzyh%2FTCP-Lab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comzyh%2FTCP-Lab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comzyh%2FTCP-Lab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comzyh%2FTCP-Lab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/comzyh","download_url":"https://codeload.github.com/comzyh/TCP-Lab/tar.gz/refs/heads/comzyh","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245662771,"owners_count":20652079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T16:00:41.643Z","updated_at":"2025-03-26T13:30:54.317Z","avatar_url":"https://github.com/comzyh.png","language":"C++","readme":"For build prereqs, see [the CS144 VM setup instructions](https://web.stanford.edu/class/cs144/vm_howto).\n\n## Sponge quickstart\n\nTo set up your build directory:\n\n\t$ mkdir -p \u003cpath/to/sponge\u003e/build\n\t$ cd \u003cpath/to/sponge\u003e/build\n\t$ cmake ..\n\n**Note:** all further commands listed below should be run from the `build` dir.\n\nTo build:\n\n    $ make\n\nYou can use the `-j` switch to build in parallel, e.g.,\n\n    $ make -j$(nproc)\n\nTo test (after building; make sure you've got the [build prereqs](https://web.stanford.edu/class/cs144/vm_howto) installed!)\n\n    $ make check\n\nThe first time you run `make check`, it will run `sudo` to configure two\n[TUN](https://www.kernel.org/doc/Documentation/networking/tuntap.txt) devices for use during\ntesting.\n\n### build options\n\nYou can specify a different compiler when you run cmake:\n\n    $ CC=clang CXX=clang++ cmake ..\n\nYou can also specify `CLANG_TIDY=` or `CLANG_FORMAT=` (see \"other useful targets\", below).\n\nSponge's build system supports several different build targets. By default, cmake chooses the `Release`\ntarget, which enables the usual optimizations. The `Debug` target enables debugging and reduces the\nlevel of optimization. To choose the `Debug` target:\n\n    $ cmake .. -DCMAKE_BUILD_TYPE=Debug\n\nThe following targets are supported:\n\n- `Release` - optimizations\n- `Debug` - debug symbols and `-Og`\n- `RelASan` - release build with [ASan](https://en.wikipedia.org/wiki/AddressSanitizer) and\n  [UBSan](https://developers.redhat.com/blog/2014/10/16/gcc-undefined-behavior-sanitizer-ubsan/)\n- `RelTSan` - release build with\n  [ThreadSan](https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Thread_Sanitizer)\n- `DebugASan` - debug build with ASan and UBSan\n- `DebugTSan` - debug build with ThreadSan\n\nOf course, you can combine all of the above, e.g.,\n\n    $ CLANG_TIDY=clang-tidy-6.0 CXX=clang++-6.0 .. -DCMAKE_BUILD_TYPE=Debug\n\n**Note:** if you want to change `CC`, `CXX`, `CLANG_TIDY`, or `CLANG_FORMAT`, you need to remove\n`build/CMakeCache.txt` and re-run cmake. (This isn't necessary for `CMAKE_BUILD_TYPE`.)\n\n### other useful targets\n\nTo generate documentation (you'll need `doxygen`; output will be in `build/doc/`):\n\n    $ make doc\n\nTo lint (you'll need `clang-tidy`):\n\n    $ make -j$(nproc) tidy\n\nTo run cppcheck (you'll need `cppcheck`):\n\n    $ make cppcheck\n\nTo format (you'll need `clang-format`):\n\n    $ make format\n\nTo see all available targets,\n\n    $ make help\n","funding_links":[],"categories":["C++"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomzyh%2FTCP-Lab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomzyh%2FTCP-Lab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomzyh%2FTCP-Lab/lists"}