Documentation
¶
Overview ¶
Package socktest provides utilities for socket testing.
Index ¶
- type AfterFilter
- type Cookie
- type Filter
- type FilterType
- type Sockets
- type Stat
- type Status
- type Switch
- func (sw *Switch) Accept(s int) (ns int, sa syscall.Sockaddr, err error)
- func (sw *Switch) Accept4(s, flags int) (ns int, sa syscall.Sockaddr, err error)
- func (sw *Switch) Close(s int) (err error)
- func (sw *Switch) Connect(s int, sa syscall.Sockaddr) (err error)
- func (sw *Switch) GetsockoptInt(s, level, opt int) (soerr int, err error)
- func (sw *Switch) Listen(s, backlog int) (err error)
- func (sw *Switch) Set(t FilterType, f Filter)
- func (sw *Switch) Socket(family, sotype, proto int) (s int, err error)
- func (sw *Switch) Sockets() Sockets
- func (sw *Switch) Stats() []Stat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AfterFilter ¶
An AfterFilter represents a socket system call filter after an execution of a system call.
It will only be executed after a system call for a socket that has an entry in internal table. If the filter returns a non-nil error, the system call function returns the non-nil error.