port

package
v0.0.0-...-c92cbe1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectTo

func ConnectTo(host string, destPort uint32, datalistener common.DatatListener, registry common.IRegistry, servicePoints common.IServicePoints) (common.Port, error)

This is the method that the service port is using to connect to the switch for the VM/machine

Types

type PortImpl

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

func NewPortImpl

func NewPortImpl(incomingConnection bool, con net.Conn, uid string, dataListener common.DatatListener, registry common.IRegistry, servicePoints common.IServicePoints) *PortImpl

Instantiate a new port with a connection

func (*PortImpl) Addr

func (port *PortImpl) Addr() string

Addr The address of this port, either remote addr or local depending on if this is the initiator of the connection

func (*PortImpl) CreatedAt

func (port *PortImpl) CreatedAt() int64

func (*PortImpl) Do

func (port *PortImpl) Do(action model.Action, dest string, pb proto.Message) error

Do is wrapping a protobuf with a secure message and send it to the switch

func (*PortImpl) Name

func (port *PortImpl) Name() string

func (*PortImpl) Send

func (port *PortImpl) Send(data []byte) error

Send Add the raw data to the tx queue to be written to the socket

func (*PortImpl) Shutdown

func (port *PortImpl) Shutdown()

func (*PortImpl) Start

func (port *PortImpl) Start()

func (*PortImpl) Uuid

func (port *PortImpl) Uuid() string

The port uuid

func (*PortImpl) ZSide

func (port *PortImpl) ZSide() string

type ReconnectInfo

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

Jump to

Keyboard shortcuts

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