/ Published in: C#
Expand |
Embed | Plain Text
public void CheckUplink(string ip) { options.DontFragment = true; string data = "test"; byte[] buffer = Encoding.ASCII.GetBytes(data); //timeout before trigger int timeout = 120; PingReply reply = pingSender.Send(ip, timeout, buffer, options); if (reply.Status == IPStatus.Success) { //upon success } else { //upon failure } }
You need to login to post a comment.
