Documentation ¶
Overview ¶
Package framesender provides utilities to send management frames.
Index ¶
- type Option
- type Sender
- func (s *Sender) Interface() string
- func (s Sender) ReserveForStop(ctx context.Context) (context.Context, context.CancelFunc)
- func (s *Sender) Send(ctx context.Context, t Type, ch int, ops ...Option) error
- func (s *Sender) Start(ctx context.Context, t Type, ch int, ops ...Option) error
- func (s *Sender) Stop(ctx context.Context) error
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*config)
Option is the type of options of Sender.Send call.
func Count ¶
Count returns an Option which sets the count to send in Send config. 0 is a special value meaning endless send. When count=0 specified, the process will only stop on context done.
func ProbeRespFooter ¶
ProbeRespFooter returns an Option which sets the footer in probe response.
func SSIDPrefix ¶
SSIDPrefix returns an Option which sets the SSID prefix.
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
Sender sends management frame with send_management_frame tool provided by wifi-testbed package on test router.
func (Sender) ReserveForStop ¶
ReserveForStop reserves time in context for cleaning up in Stop.
func (*Sender) Send ¶
Send executes send_management_frame tool to send management frames with type t on iface and ch channel with given options.