Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset af4f86f in mainline


Ignore:
Timestamp:
2010-12-25T21:51:28Z (11 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
c5ad226
Parents:
0349a10
Message:

More cstyle in netecho.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/netecho/netecho.c

    r0349a10 raf4f86f  
    5757{
    5858        printf(
    59                 "Network echo server\n" \
    60                 "Usage: " NAME " [options]\n" \
    61                 "Where options are:\n" \
    62                 "-b backlog | --backlog=size\n" \
    63                 "\tThe size of the accepted sockets queue. Only for SOCK_STREAM. The default is 3.\n" \
    64                 "\n" \
    65                 "-c count | --count=count\n" \
    66                 "\tThe number of received messages to handle. A negative number means infinity. The default is infinity.\n" \
    67                 "\n" \
    68                 "-f protocol_family | --family=protocol_family\n" \
    69                 "\tThe listenning socket protocol family. Only the PF_INET and PF_INET6 are supported.\n"
    70                 "\n" \
    71                 "-h | --help\n" \
    72                 "\tShow this application help.\n"
    73                 "\n" \
    74                 "-p port_number | --port=port_number\n" \
    75                 "\tThe port number the application should listen at. The default is 7.\n" \
    76                 "\n" \
    77                 "-r reply_string | --reply=reply_string\n" \
    78                 "\tThe constant reply string. The default is the original data received.\n" \
    79                 "\n" \
    80                 "-s receive_size | --size=receive_size\n" \
    81                 "\tThe maximum receive data size the application should accept. The default is 1024 bytes.\n" \
    82                 "\n" \
    83                 "-t socket_type | --type=socket_type\n" \
    84                 "\tThe listenning socket type. Only the SOCK_DGRAM and the SOCK_STREAM are supported.\n" \
    85                 "\n" \
    86                 "-v | --verbose\n" \
    87                 "\tShow all output messages.\n"
     59            "Network echo server\n"
     60            "Usage: " NAME " [options]\n"
     61            "Where options are:\n"
     62            "-b backlog | --backlog=size\n"
     63            "\tThe size of the accepted sockets queue. Only for SOCK_STREAM. "
     64            "The default is 3.\n"
     65            "\n"
     66            "-c count | --count=count\n"
     67            "\tThe number of received messages to handle. A negative number "
     68            "means infinity. The default is infinity.\n"
     69            "\n"
     70            "-f protocol_family | --family=protocol_family\n"
     71            "\tThe listenning socket protocol family. Only the PF_INET and "
     72            "PF_INET6 are supported.\n"
     73            "\n"
     74            "-h | --help\n"
     75            "\tShow this application help.\n"
     76            "\n"
     77            "-p port_number | --port=port_number\n"
     78            "\tThe port number the application should listen at. The default "
     79            "is 7.\n"
     80            "\n"
     81            "-r reply_string | --reply=reply_string\n"
     82            "\tThe constant reply string. The default is the original data "
     83            "received.\n"
     84            "\n"
     85            "-s receive_size | --size=receive_size\n"
     86            "\tThe maximum receive data size the application should accept. "
     87            "The default is 1024 bytes.\n"
     88            "\n"
     89            "-t socket_type | --type=socket_type\n"
     90            "\tThe listenning socket type. Only the SOCK_DGRAM and the "
     91            "SOCK_STREAM are supported.\n"
     92            "\n"
     93            "-v | --verbose\n"
     94            "\tShow all output messages.\n"
    8895        );
    8996}
     
    118125
    119126        /* Parse command line arguments */
    120         for (index = 1; index < argc; ++ index) {
     127        for (index = 1; index < argc; ++index) {
    121128                if (argv[index][0] == '-') {
    122129                        switch (argv[index][1]) {
Note: See TracChangeset for help on using the changeset viewer.