test_network

package
v0.0.0-...-f95323f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogTestNetwork bool

Functions

This section is empty.

Types

type ApplicationLayerStateMachine

type ApplicationLayerStateMachine struct {
	ApplicationServiceElementContract
	*ClientStateMachine `ignore:"true"` // TODO: add support
	// contains filtered or unexported fields
}

func NewApplicationLayerStateMachine

func NewApplicationLayerStateMachine(localLog zerolog.Logger, address string, vlan *Network) (*ApplicationLayerStateMachine, error)

func (*ApplicationLayerStateMachine) Confirmation

func (a *ApplicationLayerStateMachine) Confirmation(args Args, kwArgs KWArgs) error

func (*ApplicationLayerStateMachine) Indication

func (a *ApplicationLayerStateMachine) Indication(args Args, kwArgs KWArgs) error

func (*ApplicationLayerStateMachine) Serialize

func (d *ApplicationLayerStateMachine) Serialize() ([]byte, error)

func (*ApplicationLayerStateMachine) SerializeWithWriteBuffer

func (d *ApplicationLayerStateMachine) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error

func (*ApplicationLayerStateMachine) String

type ApplicationNode

type ApplicationNode struct {
	*Application
	*WhoIsIAmServices
	*ReadWritePropertyServices
	*DefaultRFormatter `ignore:"true"`
	// contains filtered or unexported fields
}

func NewApplicationNode

func NewApplicationNode(localLog zerolog.Logger, address string, vlan *Network) (*ApplicationNode, error)

func (*ApplicationNode) AlternateString

func (a *ApplicationNode) AlternateString() (string, bool)

func (*ApplicationNode) Serialize

func (d *ApplicationNode) Serialize() ([]byte, error)

func (*ApplicationNode) SerializeWithWriteBuffer

func (d *ApplicationNode) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error

func (*ApplicationNode) String

func (d *ApplicationNode) String() string

type NPDUCodec

type NPDUCodec struct {
	ClientContract
	ServerContract
	// contains filtered or unexported fields
}

func NewNPDUCodec

func NewNPDUCodec(localLog zerolog.Logger) (*NPDUCodec, error)

func (*NPDUCodec) Confirmation

func (n *NPDUCodec) Confirmation(args Args, kwArgs KWArgs) error

func (*NPDUCodec) Indication

func (n *NPDUCodec) Indication(args Args, kwArgs KWArgs) error

func (*NPDUCodec) Serialize

func (d *NPDUCodec) Serialize() ([]byte, error)

func (*NPDUCodec) SerializeWithWriteBuffer

func (d *NPDUCodec) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error

func (*NPDUCodec) String

func (d *NPDUCodec) String() string

type NetworkLayerStateMachine

type NetworkLayerStateMachine struct {
	*ClientStateMachine
	// contains filtered or unexported fields
}

func NewNetworkLayerStateMachine

func NewNetworkLayerStateMachine(localLog zerolog.Logger, address string, vlan *Network) (*NetworkLayerStateMachine, error)

type RouterNode

type RouterNode struct {
	// contains filtered or unexported fields
}

func NewRouterNode

func NewRouterNode(localLog zerolog.Logger) (*RouterNode, error)

func (*RouterNode) AddNetwork

func (r *RouterNode) AddNetwork(address string, vlan *Network, net uint16) error

func (*RouterNode) String

func (r *RouterNode) String() string

type RouterStateMachine

type RouterStateMachine struct {
	*RouterNode
	StateMachineContract
}

func NewRouterStateMachine

func NewRouterStateMachine(localLog zerolog.Logger, options ...Option) (*RouterStateMachine, error)

func (*RouterStateMachine) Send

func (r *RouterStateMachine) Send(args Args, kwArgs KWArgs) error

func (*RouterStateMachine) String

func (r *RouterStateMachine) String() string

type SnifferStateMachine

type SnifferStateMachine struct {
	*ClientStateMachine
	// contains filtered or unexported fields
}

func NewSnifferStateMachine

func NewSnifferStateMachine(localLog zerolog.Logger, address string, vlan *Network) (*SnifferStateMachine, error)

type TestDeviceObject

type TestDeviceObject struct {
	device.LocalDeviceObject
}

func NewTestDeviceObject

func NewTestDeviceObject(args Args, kwArgs KWArgs, options ...Option) (*TestDeviceObject, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL