Class ICMPClient
ICMPClient class. Used to manage the ICMP connection to a client.
Inheritance
System.Object
ICMPClient
Namespace: Cosmos.System.Network.IPv4
Assembly: Cosmos.System2.dll
Syntax
public class ICMPClient : IDisposable
Constructors
| Improve this Doc View SourceICMPClient()
Create new instance of the ICMPClient class.
Declaration
public ICMPClient()
Fields
| Improve this Doc View Sourcedestination
Destination address.
Declaration
protected Address destination
Field Value
Type | Description |
---|---|
Address |
rxBuffer
RX buffer queue.
Declaration
protected Queue<ICMPPacket> rxBuffer
Field Value
Type | Description |
---|---|
Queue<ICMPPacket> |
Methods
| Improve this Doc View SourceClose()
Close connection.
Declaration
public void Close()
Connect(Address)
Connect to client.
Declaration
public void Connect(Address dest)
Parameters
Type | Name | Description |
---|---|---|
Address | dest | Destination address. |
Dispose()
Close Client
Declaration
public void Dispose()
Receive(ref EndPoint, Int32)
Declaration
public int Receive(ref EndPoint source, int timeout = 5000)
Parameters
Type | Name | Description |
---|---|---|
EndPoint | source | |
System.Int32 | timeout |
Returns
Type | Description |
---|---|
System.Int32 |
ReceiveData(ICMPPacket)
Receive data from packet.
Declaration
public void ReceiveData(ICMPPacket packet)
Parameters
Type | Name | Description |
---|---|---|
ICMPPacket | packet | Packet to receive. |
SendEcho()
Send ICMP Echo
Declaration
public void SendEcho()