Socket is any interface that defines the behaviors of Socket
| 8 | |
| 9 | // Socket is any interface that defines the behaviors of Socket |
| 10 | type 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 | } |
no outgoing calls
no test coverage detected