server

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Overview

Package server contains the server for handling requests against a desktop's proxy instance.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler func(*proxyproto.Conn)

Handler is a function for handling a connection server side.

type ProxyOpts

type ProxyOpts struct {
	FSUserID                                           int
	DisplayAddress, DisplayProto                       string
	PulseServer                                        string
	PlaybackSampleRate                                 int
	PlaybackDeviceName, PlaybackDeviceDescription      string
	RecordingDeviceName, RecordingDeviceDescription    string
	RecordingDevicePath, RecordingDeviceFormat         string
	RecordingDeviceSampleRate, RecordingDeviceChannels int
}

ProxyOpts are additional options for configuring the proxy server.

type Server

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

Server is a structure used by the kvdi-proxy for accepting connections from the kvdi-app instances.

func New

func New(logger logr.Logger, host string, port int32, opts *ProxyOpts) *Server

New returns a new proxy server configured to listen on the given host and port.

func (*Server) ListenAndServe

func (p *Server) ListenAndServe() error

ListenAndServe listens and accepts incoming client connections and feeds them to the channel.

Jump to

Keyboard shortcuts

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