C# Class PlotPing.NetworkInterfaceUtils

Adapted from Eric Sierp's post at http://social.msdn.microsoft.com/Forums/vstudio/en-US/953ca987-b37a-42e2-8eaf-3378fb88282f/testing-for-internet-connectivity-across-a-specific-network-adapter?forum=csharpgeneral
Mostrar archivo Open project: ccampo133/PlotPing

Public Methods

Method Description
AddRoute ( NetworkInterface adapter, string hostOrIp ) : string

Returns the destination IP we'll later want to delete

RemoveRoute ( string destination ) : void

Private Methods

Method Description
AddRoute ( string gateway, string destination ) : void

Method Details

AddRoute() public static method

Returns the destination IP we'll later want to delete
public static AddRoute ( NetworkInterface adapter, string hostOrIp ) : string
adapter System.Net.NetworkInformation.NetworkInterface
hostOrIp string
return string

RemoveRoute() public static method

public static RemoveRoute ( string destination ) : void
destination string
return void