NAME
    tcping - simulate “ping” over tcp by establishing a connection to network hosts.
    Measures the time for your system to [SYN], receive the target’s [SYN][ACK] and send [ACK]. Note that the travel time for
    the last ACK is not included - only the time it takes to be put on the wire a tthe sending end.

    SYNOPSIS
    tcping [-tdsvf46] [-i interval] [-n times] [-w interval] [-b n] [-r times][-j depth] [—tee filename] [-f] destination [port]

    描述
    tcping测量在自身和远程主机之间执行TCP三方握手(SYN、SYN/ACK、ACK)所需的时间。不包括传出最终确认的行程时间,仅包括将其丢弃所需的(最小)时间量电线在近端。这使得(SYN,SYN/ACK)的行程时间近似于等同于ICMP(请求、响应)。

    OPTIONS
    -4 Prefer using IPv4(使用IPv4)

    -6 Prefer using IPv6(使用IPv6)

    -t ping continuously until stopped via control-c(持续ping,直到通过Ctrl-c停止)

    -n count
    发送计数pings,然后停止。默认值4。

    -i interval
    两次ping之间的等待时间间隔为秒。默认值1。允许小数。

    -w interval
    等待 interval 秒响应。默认值2。允许小数。

    -d 在每个输出行上包括日期和时间

    -f 除了建立连接之外,还强制发送至少一个字节。

    -g count
    在ping失败后放弃。

    -b type
    启用可听见的蜂鸣声。
    “-b1”将发出“开-关”的蜂鸣声。如果主机已启动,但现在未启动,请发出嘟嘟声。
    “-b 2”将发出“向上”的蜂鸣声。如果主机已关闭,但现在已启动,请发出嘟嘟声。
    “-b3”将发出“更改时”的蜂鸣声。如果主机是一种方式,但现在是另一种方式,请发出嘟嘟声。
    “-b 4”将发出“始终”的蜂鸣声。

    -c 仅在更改状态下显示输出

    -r count
    Every count pings, we will perform a new DNS lookup for the host in case it changed.

    -s Exit immediately upon a success.

    -v Print version and exit.

    -j Calculate jitter. Jitter is defined as the difference between the last response time and the historical average.

    -js depth
    Calculate jitter, as with -j but with an optional depth argument specified. If depth is specified tcping will
    use the prior depth values to calculate a rolling average.

    —tee filename
    Duplicate output to the filename specified. Windows can still not be depended upon to have a useful command line
    environment. Don’t tease me, *nix guys.

    —append
    When using —tee, append to rather than overwrite the output file.

    —file
    Treat the “destination” option as a filename. That file becomes a source of destinations, looped through on a
    line by line basis. Some options don’t work in this mode and statistics will not be kept.


    destination
    A DNS name, an IP address, or (in “http” mode) a URL.
    Do not specify the protocol (“http://“) in “http” mode. Also do not specify server port via “:port” syntax.
    For instance: “tcping http://www.elifulkerson.com:8080/index.html” would fail
    Use the style: “tcping www.elifulkerson.com/index.html 8080” instead.

    port
    A numeric TCP port, 1-65535. If not specified, defaults to 80.

    —header
    include a header with the command line arguments and timestamp. Header is implied if using —tee.

    HTTP MODE OPTIONS
    -h Use “http” mode. In http mode we will attempt to GET the specified document and return additional values including
    the document’s size, http response code, kbit/s.
    -u In “http” mode, include the target URL on each output line.

    —post Use POST instead of GET in http mode.
    —head Use HEAD instead of GET in http mode.
    —get Shorthand to invoke “http” mode for consistency’s sake.



    RETURN VALUE(返回值)
    tcping returns 0 if all pings are successful, 1 if zero pings are successful and 2 for mixed outcome.
    (如果全部ping都成功,则tcping返回0;如果一个都没有ping成功,则返回1;对于混合结果,则返回2。)

    BUGS/REQUESTS(错误/请求)
    Please report bugs and feature requests to the author via contact information on
    (请通过上的联系信息向作者报告错误和功能请求)