Documentation ¶
Index ¶
- Variables
- type ApplicationLayerStateMachine
- func (a *ApplicationLayerStateMachine) Confirmation(args Args, kwArgs KWArgs) error
- func (a *ApplicationLayerStateMachine) Indication(args Args, kwArgs KWArgs) error
- func (d *ApplicationLayerStateMachine) Serialize() ([]byte, error)
- func (d *ApplicationLayerStateMachine) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
- func (d *ApplicationLayerStateMachine) String() string
- type ApplicationNode
- type NPDUCodec
- func (n *NPDUCodec) Confirmation(args Args, kwArgs KWArgs) error
- func (n *NPDUCodec) Indication(args Args, kwArgs KWArgs) error
- func (d *NPDUCodec) Serialize() ([]byte, error)
- func (d *NPDUCodec) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
- func (d *NPDUCodec) String() string
- type NetworkLayerStateMachine
- type RouterNode
- type RouterStateMachine
- type SnifferStateMachine
- type TestDeviceObject
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 ¶
func (d *ApplicationLayerStateMachine) String() 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 (*NPDUCodec) Confirmation ¶
func (*NPDUCodec) Indication ¶
func (*NPDUCodec) SerializeWithWriteBuffer ¶
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)
Source Files ¶
- helpers.go
- helpers_ApplicationLayerStateMachine.go
- helpers_ApplicationLayerStateMachine_plc4xgen.go
- helpers_ApplicationNode.go
- helpers_ApplicationNode_plc4xgen.go
- helpers_NPDUCodec.go
- helpers_NPDUCodec_plc4xgen.go
- helpers_NetworkLayerStateMachine.go
- helpers_RouterNode.go
- helpers_RouterStaterMachine.go
- helpers_SnifferStateMachine.go
- helpers_TestDeviceObject.go
- helpers__NetworkServiceElement.go
- settings.go
Click to show internal directories.
Click to hide internal directories.