Walter.Net.Networking
Start Method (ICMPSocket)
Example 
Walter.Net.Networking Assembly > Walter.Net.Networking Namespace > ICMPSocket Class : Start Method
Starts this instance of the socket listening to ICPM messages.
Syntax
public void Start()
Remarks
There is no exclusive lock on the network card, the card will answer if no VESNX Kernel-Mode Driver is used
Example
The socket doesn't work on anything but the actual ip address, both ipv6 and ipv4 are supported
_iCMPSockets = new List<ICMPSocket>();
 
//store the socket in _iCMPSockets to dispose them on disposing the owner
 
Inverse.TryResolve<ILoggerFactory>(out var factory);
foreach (var ip in LocalNetwork.LocalIPAddresses())
{ 
    _iCMPSockets.Add(new ICMPSocket(ip,_cancellationToken.Token));
    _iCMPSockets[^1].PacketReceived += OnPinged;
    _iCMPSockets[^1].Logger = factory?.CreateLogger("Walter.Net.Networking.ICMPSocket.") ?? _logger;
    _iCMPSockets[^1].Start();
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ICMPSocket Class
ICMPSocket Members