messages

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const PortForwardChannelType = "forwarded-tcpip"
View Source
const (
	PortForwardRequestType = "tcpip-forward"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PortForwardChannel

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

func NewPortForwardChannel

func NewPortForwardChannel(senderChannel uint32, host string, port uint32, originatorIPAddress string, originatorPort uint32) *PortForwardChannel

func (*PortForwardChannel) Marshal

func (pfc *PortForwardChannel) Marshal() ([]byte, error)

Marshal returns the byte representation of the PortForwardChannel. This does not include the channelOpen as it is already included in the ssh message.

func (*PortForwardChannel) Port

func (pfc *PortForwardChannel) Port() uint32

func (*PortForwardChannel) Type

func (pfc *PortForwardChannel) Type() string

func (*PortForwardChannel) Unmarshal

func (pfc *PortForwardChannel) Unmarshal(buf io.Reader) (err error)

Unmarshal parses the byte representation of the PortForwardChannel. This does not include the channelOpen.

type PortForwardRequest

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

func NewPortForwardRequest

func NewPortForwardRequest(addressToBind string, port uint32) *PortForwardRequest

func (*PortForwardRequest) Marshal

func (pfr *PortForwardRequest) Marshal() ([]byte, error)

func (*PortForwardRequest) Port

func (pfr *PortForwardRequest) Port() uint32

func (*PortForwardRequest) Unmarshal

func (pfr *PortForwardRequest) Unmarshal(buf io.Reader) error

type PortForwardSuccess

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

func NewPortForwardSuccess

func NewPortForwardSuccess(port uint32) *PortForwardSuccess

func (*PortForwardSuccess) Marshal

func (pfs *PortForwardSuccess) Marshal() ([]byte, error)

func (*PortForwardSuccess) Port

func (pfs *PortForwardSuccess) Port() uint32

func (*PortForwardSuccess) Unmarshal

func (pfs *PortForwardSuccess) Unmarshal(buf io.Reader) error

Jump to

Keyboard shortcuts

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