[examples][network] 更新 TCP/UDP 例程 uage
Signed-off-by: MurphyZhao <d2014zjt@163.com>
This commit is contained in:
parent
b2d4dd0ba7
commit
e9c795e8bc
|
@ -160,15 +160,15 @@ __exit:
|
|||
|
||||
static void usage(void)
|
||||
{
|
||||
LOG_I("Usage: tcpclient -h <host> -p <port>");
|
||||
LOG_I(" tcpclient --stop");
|
||||
LOG_I(" tcpclient --help");
|
||||
LOG_I("");
|
||||
LOG_I("Miscellaneous:");
|
||||
LOG_I(" -h Specify host address");
|
||||
LOG_I(" -p Specify the host port number");
|
||||
LOG_I(" --stop Stop tcpclient program");
|
||||
LOG_I(" --help Print help information");
|
||||
rt_kprintf("Usage: tcpclient -h <host> -p <port>\n");
|
||||
rt_kprintf(" tcpclient --stop\n");
|
||||
rt_kprintf(" tcpclient --help\n");
|
||||
rt_kprintf("\n");
|
||||
rt_kprintf("Miscellaneous:\n");
|
||||
rt_kprintf(" -h Specify host address\n");
|
||||
rt_kprintf(" -p Specify the host port number\n");
|
||||
rt_kprintf(" --stop Stop tcpclient program\n");
|
||||
rt_kprintf(" --help Print help information\n");
|
||||
}
|
||||
|
||||
static void tcpclient_test(int argc, char** argv)
|
||||
|
|
|
@ -197,14 +197,14 @@ __exit:
|
|||
|
||||
static void usage(void)
|
||||
{
|
||||
LOG_I("Usage: tcpserver -p <port>");
|
||||
LOG_I(" tcpserver --stop");
|
||||
LOG_I(" tcpserver --help");
|
||||
LOG_I("");
|
||||
LOG_I("Miscellaneous:");
|
||||
LOG_I(" -p Specify the host port number");
|
||||
LOG_I(" --stop Stop tcpserver program");
|
||||
LOG_I(" --help Print help information");
|
||||
rt_kprintf("Usage: tcpserver -p <port>\n");
|
||||
rt_kprintf(" tcpserver --stop\n");
|
||||
rt_kprintf(" tcpserver --help\n");
|
||||
rt_kprintf("\n");
|
||||
rt_kprintf("Miscellaneous:\n");
|
||||
rt_kprintf(" -p Specify the host port number\n");
|
||||
rt_kprintf(" --stop Stop tcpserver program\n");
|
||||
rt_kprintf(" --help Print help information\n");
|
||||
}
|
||||
|
||||
static void tcpserver_test(int argc, char** argv)
|
||||
|
|
|
@ -83,16 +83,16 @@ static void udpclient(void *arg)
|
|||
|
||||
static void usage(void)
|
||||
{
|
||||
LOG_I("Usage: udpclient -h <host> -p <port> [--cnt] [count]");
|
||||
LOG_I(" udpclient --stop");
|
||||
LOG_I(" udpclient --help");
|
||||
LOG_I("");
|
||||
LOG_I("Miscellaneous:");
|
||||
LOG_I(" -h Specify host address");
|
||||
LOG_I(" -p Specify the host port number");
|
||||
LOG_I(" --cnt Specify the send data count");
|
||||
LOG_I(" --stop Stop tcpclient program");
|
||||
LOG_I(" --help Print help information");
|
||||
rt_kprintf("Usage: udpclient -h <host> -p <port> [--cnt] [count]\n");
|
||||
rt_kprintf(" udpclient --stop\n");
|
||||
rt_kprintf(" udpclient --help\n");
|
||||
rt_kprintf("\n");
|
||||
rt_kprintf("Miscellaneous:\n");
|
||||
rt_kprintf(" -h Specify host address\n");
|
||||
rt_kprintf(" -p Specify the host port number\n");
|
||||
rt_kprintf(" --cnt Specify the send data count\n");
|
||||
rt_kprintf(" --stop Stop tcpclient program\n");
|
||||
rt_kprintf(" --help Print help information\n");
|
||||
}
|
||||
|
||||
static void udpclient_test(int argc, char** argv)
|
||||
|
|
|
@ -131,14 +131,14 @@ __exit:
|
|||
|
||||
static void usage(void)
|
||||
{
|
||||
LOG_I("Usage: udpserver -p <port>");
|
||||
LOG_I(" udpserver --stop");
|
||||
LOG_I(" udpserver --help");
|
||||
LOG_I("");
|
||||
LOG_I("Miscellaneous:");
|
||||
LOG_I(" -p Specify the host port number");
|
||||
LOG_I(" --stop Stop udpserver program");
|
||||
LOG_I(" --help Print help information");
|
||||
rt_kprintf("Usage: udpserver -p <port>\n");
|
||||
rt_kprintf(" udpserver --stop\n");
|
||||
rt_kprintf(" udpserver --help\n");
|
||||
rt_kprintf("\n");
|
||||
rt_kprintf("Miscellaneous:\n");
|
||||
rt_kprintf(" -p Specify the host port number\n");
|
||||
rt_kprintf(" --stop Stop udpserver program\n");
|
||||
rt_kprintf(" --help Print help information\n");
|
||||
}
|
||||
|
||||
static void udpserver_test(int argc, char** argv)
|
||||
|
|
Loading…
Reference in New Issue