status-go/vendor/github.com/libp2p/go-tcp-transport/metrics_general.go

17 lines
434 B
Go
Raw Normal View History

2021-10-19 13:43:41 +00:00
//go:build !linux && !darwin && !windows
// +build !linux,!darwin,!windows
package tcp
import "github.com/mikioh/tcpinfo"
const (
hasSegmentCounter = false
hasByteCounter = false
)
func getSegmentsSent(info *tcpinfo.Info) uint64 { return 0 }
func getSegmentsRcvd(info *tcpinfo.Info) uint64 { return 0 }
func getBytesSent(info *tcpinfo.Info) uint64 { return 0 }
func getBytesRcvd(info *tcpinfo.Info) uint64 { return 0 }