mirror of
https://github.com/status-im/status-go.git
synced 2025-01-17 02:02:36 +00:00
17 lines
466 B
Go
17 lines
466 B
Go
|
//go:build darwin
|
||
|
// +build darwin
|
||
|
|
||
|
package tcp
|
||
|
|
||
|
import "github.com/mikioh/tcpinfo"
|
||
|
|
||
|
const (
|
||
|
hasSegmentCounter = true
|
||
|
hasByteCounter = true
|
||
|
)
|
||
|
|
||
|
func getSegmentsSent(info *tcpinfo.Info) uint64 { return info.Sys.SegsSent }
|
||
|
func getSegmentsRcvd(info *tcpinfo.Info) uint64 { return info.Sys.SegsReceived }
|
||
|
func getBytesSent(info *tcpinfo.Info) uint64 { return info.Sys.BytesSent }
|
||
|
func getBytesRcvd(info *tcpinfo.Info) uint64 { return info.Sys.BytesReceived }
|