1
0
mirror of https://github.com/fumiama/simple-kanban.git synced 2026-06-09 18:51:54 +08:00

更新README

This commit is contained in:
fumiama
2021-05-07 21:04:36 +08:00
parent c9bdb2e5a3
commit 636540bebb
2 changed files with 3 additions and 3 deletions

View File

@@ -72,10 +72,10 @@ make
## 0. 启动程序
```bash
./simple-kanban-client 127.0.0.1 7777
./simple-kanban-client 127.0.0.1 7777 [-b]
```
接下来即可按照上面的交互流程开始使用。
接下来即可按照上面的交互流程开始使用。其中末尾的`-b`为可选项(程序只判断参数个数所以请务必放到末尾),表示以大端序发送文件长度。
## 1. 发送命令

View File

@@ -43,7 +43,7 @@ off_t size_of_file(const char* fname) {
else return -1;
}
int main(int argc,char *argv[]) { //usage: ./client host port [-l]
int main(int argc,char *argv[]) { //usage: ./client host port [-d]
ssize_t numbytes;
puts("break!");
while((sockfd = socket(AF_INET,SOCK_STREAM,0)) == -1);