rdp

package
v0.75.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

View Source
const (
	RDCleanPathVersion     = 3390
	RDCleanPathProxyHost   = "rdcleanpath.proxy.local"
	RDCleanPathProxyScheme = "ws"

	GeneralErrorCode = 1
	WSAETimedOut     = 10060
	WSAEConnRefused  = 10061
	WSAEConnAborted  = 10053
	WSAEConnReset    = 10054
	WSAEGenericError = 10050
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RDCleanPathErr added in v0.59.6

type RDCleanPathErr struct {
	ErrorCode      int16 `asn1:"tag:0,explicit"`
	HTTPStatusCode int16 `asn1:"tag:1,explicit,optional"`
	WSALastError   int16 `asn1:"tag:2,explicit,optional"`
	TLSAlertCode   int8  `asn1:"tag:3,explicit,optional"`
}

type RDCleanPathPDU

type RDCleanPathPDU struct {
	Version           int64          `asn1:"tag:0,explicit"`
	Error             RDCleanPathErr `asn1:"tag:1,explicit,optional"`
	Destination       string         `asn1:"utf8,tag:2,explicit,optional"`
	ProxyAuth         string         `asn1:"utf8,tag:3,explicit,optional"`
	ServerAuth        string         `asn1:"utf8,tag:4,explicit,optional"`
	PreconnectionBlob string         `asn1:"utf8,tag:5,explicit,optional"`
	X224ConnectionPDU []byte         `asn1:"tag:6,explicit,optional"`
	ServerCertChain   [][]byte       `asn1:"tag:7,explicit,optional"`
	ServerAddr        string         `asn1:"utf8,tag:9,explicit,optional"`
}

type RDCleanPathProxy

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

func NewRDCleanPathProxy

func NewRDCleanPathProxy(client interface {
	Dial(ctx context.Context, network, address string) (net.Conn, error)
}) *RDCleanPathProxy

NewRDCleanPathProxy creates a new RDCleanPath proxy

func (*RDCleanPathProxy) CreateProxy

func (p *RDCleanPathProxy) CreateProxy(hostname, port string) js.Value

CreateProxy creates a new proxy endpoint for the given destination. The registered handler fn and its destinations/pendingHandlers entries are only released once a connection is established and cleanupConnection runs. If a caller invokes CreateProxy but never connects to the returned URL, those entries stay pinned for the lifetime of the page.

func (*RDCleanPathProxy) HandleWebSocketConnection

func (p *RDCleanPathProxy) HandleWebSocketConnection(ws js.Value, proxyID string)

HandleWebSocketConnection handles incoming WebSocket connections from IronRDP

Jump to

Keyboard shortcuts

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