proxy

package
v0.0.0-...-49ee127 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Manager = manager{
	// contains filtered or unexported fields
}

Functions

func RoutePacket

func RoutePacket(packet *proxy.Packet, client *Client)

RoutePacket routes a incoming packet to the correct handler based on the packet type

Types

type Client

type Client struct {
	Id          uuid.UUID
	ProxyClient *proxylib.ProxyClient
	MemberInfo  *proxcom.ChannelMember
}

func NewClient

func NewClient(proxyClient *proxylib.ProxyClient, memberInfo *proxcom.ChannelMember) *Client

NewClient creates a new client

func (*Client) ListenForIncomingPackets

func (client *Client) ListenForIncomingPackets()

listenForIncomingPackets listens for incoming packets from the client

type SocketChannel

type SocketChannel struct {
	Id          string
	Source      *Client
	Sink        *Client
	Initialized bool
}

Jump to

Keyboard shortcuts

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