【测测星座源码】【轻户外源码】【bootstrap模板源码】ping 源码下载

时间:2024-11-30 14:42:39 来源:取名源码 编辑:全向轮源码解析

1.windows和linux下ping命令使用的不同之处

ping 源码下载

windows和linux下ping命令使用的不同之处

       1.Windows下默认发送四次数据包,源码测测星座源码完了之后自己结束,Linux下的ping程序默认不停发送数据包,直到你手动停止.

       2.ping命令程序不同,实现ping功能所使用 的源码不同.

       3.返回数据格式不同:

       Linux:ping [-dfnqrRv][-c<完成次数>][-i<间隔秒数>][-I<网络界面>][-l<前置载入>][-p<范本样式>][-s<数据包大小>][-t<存活数值>][主机名称或IP地址]

       Windows:

       Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]

        [-r count] [-s count] [[-j host-list] | [-k host-list]]

        [-w timeout] target_name

       Options:

        -t Ping the specified host until stopped.

        To see statistics and continue - type Control-Break;

        To stop - type Control-C.

        -a Resolve addresses to hostnames.

        -n count Number of echo requests to send.

        -l size Send buffer size.

        -f Set Don't Fragment flag in packet.

        -i TTL Time To Live.

        -v TOS Type Of Service.

        -r count Record route for count hops.

        -s count Timestamp for count hops.

        -j host-list Loose source route along host-list.

        -k host-list Strict source route along host-list.

        -w timeout Timeout in milliseconds to wait for each reply.

copyright © 2016 powered by 皮皮网   sitemap