summaryrefslogtreecommitdiff
path: root/extendedstats/other.go
blob: 50caef6b11f0267d4633804b73c1ada996af748c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//go:build !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !darwin && !windows
// +build !dragonfly,!freebsd,!linux,!netbsd,!openbsd,!darwin,!windows

package extendedstats

import (
	"fmt"
	"net"
)

type ExtendedStats struct{}

func (es *ExtendedStats) IncorporateConnectionStats(conn net.Conn) error {
	return fmt.Errorf("IncorporateConnectionStats is not supported on this platform")
}

func (es *ExtendedStats) Repr() string {
	return ""
}

func ExtendedStatsAvailable() bool {
	return false
}

func GetTCPInfo(basicConn net.Conn) (interface, error) {
	return nil, fmt.Errorf("GetTCPInfo is not supported on this platform")
}