自定义了一个日期差函数。用法见附件。 Function timediff(x As Date, y As Date, Optional z As String) As String Dim i As Integer, k As Integer, xx As Date, yy As Date, n As Long, s As String, d(1 To 3) As Long, d0(1 To 2) As Long If x > y Then xx y yy x …
1、利用原始Socket套接字,实现ICMP协议。 using System; using System.Collections.Generic; using System.Text; using System.Net; using System.Net.Sockets; namespace PingC { class ping { const int SOCKET_ERROR -1; const int IC…
一.网络配置及检查:
1.IP配置查看:
For Windows:
我们使用ipconfig /all来查看ip地址。 For Linux:
我们使用ifconfig -a或者ip addr来查看ip地址。 2.通达性检查:
For Windows:
我们使用ping来检查其…