Documentation
¶
Index ¶
- Constants
- func GetConnData(conn net.Conn, bufferSize int, delay time.Duration) ([]byte, error)
- type CBPacket
- type CBPacketType
- type Channel
- type ChannelOptions
- type ControlPacketCallback
- type PeerType
- type PortForwarding
- type Tunnel
- func (c *Tunnel) AddLocalPortForwarding(fwd PortForwarding)
- func (c *Tunnel) AddRemotePortForwarding(fwd PortForwarding)
- func (t *Tunnel) ExecuteCommand(cmd string) (output string, err error)
- func (t *Tunnel) StartClient()
- func (t *Tunnel) StartServer()
- func (t *Tunnel) StartSftp() *sftp.Client
- func (t *Tunnel) StartSocksOnPort(port int)
Constants ¶
View Source
const (
QueueSize = 16
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CBPacket ¶
type CBPacket struct { Target PeerType Type CBPacketType Payload string Seq int Ack int }
type CBPacketType ¶
type CBPacketType int
const ( PacketTypeData CBPacketType = iota PacketTypeControl )
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
func NewChannel ¶
func NewChannel(typ PeerType, options ChannelOptions) (*Channel, error)
func (*Channel) CloseChannel ¶
func (c *Channel) CloseChannel()
type ChannelOptions ¶
type ControlPacketCallback ¶
type ControlPacketCallback func(cmd, arg string)
type PortForwarding ¶
func ParsePortForwarding ¶
func ParsePortForwarding(param string) (*PortForwarding, error)
type Tunnel ¶
type Tunnel struct { Channel // contains filtered or unexported fields }
func (*Tunnel) AddLocalPortForwarding ¶
func (c *Tunnel) AddLocalPortForwarding(fwd PortForwarding)
func (*Tunnel) AddRemotePortForwarding ¶
func (c *Tunnel) AddRemotePortForwarding(fwd PortForwarding)
func (*Tunnel) ExecuteCommand ¶
func (*Tunnel) StartClient ¶
func (t *Tunnel) StartClient()
func (*Tunnel) StartServer ¶
func (t *Tunnel) StartServer()
func (*Tunnel) StartSocksOnPort ¶
Click to show internal directories.
Click to hide internal directories.