提交 3e9e4f59 编写于 作者: Y youngwolf

Fix typos.

上级 f2a736ee
Subproject commit 93f87fbdbf6111f9ef25ac56bb7e495b7ce83089
Subproject commit 57577c6db46a4e2de5351af2b185bf52696699a9
......@@ -24,7 +24,7 @@ std::atomic_int_fast64_t received_size;
int main(int argc, const char* argv[])
{
puts("this is a file transfer client.");
puts("this is a file transmission client.");
printf("usage: %s [<port=%d> [<ip=%s> [link num=1]]]\n", argv[0], ASCS_SERVER_PORT, ASCS_SERVER_IP);
if (argc >= 2 && (0 == strcmp(argv[1], "--help") || 0 == strcmp(argv[1], "-h")))
return 0;
......
......@@ -247,7 +247,7 @@ private:
file_size = -1;
received_size = 0;
printf("transfer %s begin.\n", file_name.data());
printf("transmit %s begin.\n", file_name.data());
if (find(0)->get_file(file_name))
{
//do_something_to_all([&](object_ctype& item) {if (0 != item->id()) item->get_file(file_name);});
......@@ -259,7 +259,7 @@ private:
break;
}
else
printf("transfer %s failed!\n", file_name.data());
printf("transmit %s failed!\n", file_name.data());
}
}
......
......@@ -21,7 +21,7 @@
int main(int argc, const char* argv[])
{
puts("this is a file transfer server.");
puts("this is a file transmission server.");
printf("usage: %s [<port=%d> [ip=0.0.0.0]]\n", argv[0], ASCS_SERVER_PORT);
if (argc >= 2 && (0 == strcmp(argv[1], "--help") || 0 == strcmp(argv[1], "-h")))
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册