MCPcopy
hub / github.com/probelabs/goreplay / Socket

Interface Socket

capture/socket.go:10–20  ·  view source on GitHub ↗

Socket is any interface that defines the behaviors of Socket

Source from the content-addressed store, hash-verified

8
9// Socket is any interface that defines the behaviors of Socket
10type Socket interface {
11 ReadPacketData() ([]byte, gopacket.CaptureInfo, error)
12 WritePacketData([]byte) error
13 SetBPFFilter(string) error
14 SetPromiscuous(bool) error
15 SetSnapLen(int) error
16 GetSnapLen() int
17 SetTimeout(time.Duration) error
18 SetLoopbackIndex(i int32)
19 Close() error
20}

Callers 18

ReadPacketDataMethod · 0.65
readMethod · 0.65
PcapHandleMethod · 0.65
SocketHandleMethod · 0.65
activatePcapFileMethod · 0.65
activateAFPacketMethod · 0.65
SocketHandleMethod · 0.65
PcapHandleMethod · 0.65
PcapHandleMethod · 0.65
SocketHandleMethod · 0.65
TestMiddlewareEarlyCloseFunction · 0.65
TestTokenMiddlewareFunction · 0.65

Implementers 1

SockRawcapture/sock_linux.go

Calls

no outgoing calls

Tested by

no test coverage detected