rtunnels

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

README

server/core/rtunnels

Overview

Reverse tunnel coordination within the server core. Handles tunnel registration, negotiation, and multiplexing.

Go Files

  • rtunnels.go – Manages reverse tunnel state and orchestrates tunnel handshakes.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Rtunnels map[uint64]*RTunnel = make(map[uint64]*RTunnel)
)

Functions

func AddPending added in v1.5.43

func AddPending(sessionID string, connStr string)

func AddRTunnel

func AddRTunnel(tun *RTunnel)

AddTunnel - Add tunnel to mapping

func Check added in v1.5.43

func Check(sessionID string, connStr string) bool

func DeletePending added in v1.5.43

func DeletePending(sessionID string, connStr string)

func RemoveRTunnel

func RemoveRTunnel(ID uint64)

RemoveTunnel - Add tunnel to mapping

func TrackListener added in v1.6.2

func TrackListener(sessionID string, listenerID uint32, connStr string)

func UntrackListener added in v1.6.2

func UntrackListener(sessionID string, listenerID uint32) bool

Types

type RTunnel

type RTunnel struct {
	ID        uint64
	SessionID string
	// Reader       io.ReadCloser
	Readers []io.ReadCloser

	Writer io.WriteCloser
	// contains filtered or unexported fields
}

RTunnel - Duplex byte read/write

func GetRTunnel

func GetRTunnel(ID uint64) *RTunnel

Tunnel - Add tunnel to mapping

func NewRTunnel

func NewRTunnel(id uint64, sID string, writer io.WriteCloser, readers ...io.ReadCloser) *RTunnel

func (*RTunnel) Close

func (c *RTunnel) Close()

Close - close RTunnel reader and writer

func (*RTunnel) IncReadSequence

func (c *RTunnel) IncReadSequence()

func (*RTunnel) IncWriteSequence

func (c *RTunnel) IncWriteSequence()

func (*RTunnel) ReadSequence

func (c *RTunnel) ReadSequence() uint64

func (*RTunnel) WriteSequence

func (c *RTunnel) WriteSequence() uint64

Jump to

Keyboard shortcuts

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