From f32394127613cdf2a77852acd62ced6b96dc6afd Mon Sep 17 00:00:00 2001 From: esrrhs Date: Wed, 30 Oct 2019 20:15:43 +0800 Subject: [PATCH] add --- client.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/client.go b/client.go index 563868e..6f0ed64 100644 --- a/client.go +++ b/client.go @@ -143,6 +143,22 @@ func (p *Client) RTT() time.Duration { return p.rtt } +func (p *Client) RecvPacketSize() uint64 { + return p.recvPacketSize +} + +func (p *Client) SendPacketSize() uint64 { + return p.sendPacketSize +} + +func (p *Client) RecvPacket() uint64 { + return p.recvPacket +} + +func (p *Client) SendPacket() uint64 { + return p.sendPacket +} + func (p *Client) Run() error { conn, err := icmp.ListenPacket("ip4:icmp", "")