1
0
mirror of https://github.com/fumiama/simple-kanban.git synced 2026-06-11 03:50:29 +08:00

优化代码结构

This commit is contained in:
源文雨
2022-03-06 15:11:24 +08:00
parent 39d1dc3d4e
commit 1ae1138496
2 changed files with 299 additions and 281 deletions

View File

@@ -9,6 +9,7 @@
#include <arpa/inet.h>
#include <sys/stat.h>
#include <pthread.h>
#include <unistd.h>
#if !__APPLE__
#include <sys/sendfile.h>
@@ -90,7 +91,7 @@ int main(int argc,char *argv[]) { //usage: ./client host port
else puts("Send file error.");
#endif
fclose(fp);
printf("Send count:%u\n", len);
printf("Send count:%d\n", (int)len);
} else puts("Open file error!");
} else {
send(sockfd, buf, strlen(buf), 0);