Skip to content

Commit

Permalink
fix: help message missing --chunk option
Browse files Browse the repository at this point in the history
  • Loading branch information
Cnily03 committed Jul 4, 2024
1 parent aad41f7 commit 913c80c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

This is the homework of chapter 6-7 of Computer Network Experiment 2024 in CUMT.

This repository Implemented file transfer via UDP/TCP protocol, with security check and beautified output.
This repository implemented file transfer via UDP/TCP protocol, with security check and beautified output.

## Development

The compile environment is MinGW Clang Toolchian, posix thread, C++ 20 standard on Windows OS. Please make sure you have Windows Kits on your computer.

If you meet problems when compiling, give a try to [LLVM MinGW](https://github.com/mstorsjo/llvm-mingw/releases), or refer to [Github CI](./.github/workflows/compile.yml).
If you meet problems when compiling, give a try to [LLVM MinGW](https://github.com/mstorsjo/llvm-mingw/releases), or refer to [workflow file](./.github/workflows/compile.yml).

The program will save the received file to `./received` by default, you can change the directory by using the `--dir` option.

Expand Down Expand Up @@ -41,6 +41,7 @@ Options:
--protocol <protocol> Specify the protocol to use (default: udp)
--tcp Equivalent to --protocol tcp
--udp Equivalent to --protocol udp
--chunk <size> Set chunk size for file transfer (default: 2048)
--timeout <timeout> Set timeout for sending and receiving data (default: 10000)

Copyright (c) 2024 Jevon Wang, MIT License
Expand Down
1 change: 1 addition & 0 deletions transf_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ inline void cli_usage() {
" --protocol <protocol> Specify the protocol to use (default: udp)\n"
" --tcp Equivalent to --protocol tcp\n"
" --udp Equivalent to --protocol udp\n"
" --chunk <chunk_size> Set chunk size for file transfer (default: 2048)\n"
" --timeout <timeout> Set timeout for sending and receiving data (default: 10000)\n"
"\n"
"Copyright (c) 2024 Jevon Wang, MIT License\n"
Expand Down

0 comments on commit 913c80c

Please sign in to comment.