kmsvnc

package
v0.0.0-...-683b059 Latest Latest
Warning

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

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

Documentation

Overview

Package kmsvnc is a library for wrapping the kmsvnc binary from tast.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kmsvnc

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

Kmsvnc wraps a kmsvnc process used in tests.

func NewKmsvnc

func NewKmsvnc(ctx context.Context, verbose bool) (*Kmsvnc, error)

NewKmsvnc launches kmsvnc as a subprocess and returns a handle. Blocks until kmsvnc is ready to accept connections, so it's safe to connect to kmsvnc once this function returns.

func (*Kmsvnc) Connect

func (k *Kmsvnc) Connect(ctx context.Context) (*RFBServerInit, error)

Connect connects to the kmsvnc server, completes the initial handshake as defined in RFC6143, and returns server parameters. https://tools.ietf.org/html/rfc6143#section-7

func (*Kmsvnc) Stop

func (k *Kmsvnc) Stop(ctx context.Context) error

Stop closes existing connections and terminates the kmsvnc process gracefully.

type RFBServerInit

type RFBServerInit struct {
	FramebufferWidth  uint16
	FramebufferHeight uint16
	PixelFormat       []byte
}

RFBServerInit represents a ServerInit message as specified in RFB protocol. Only fields needed for testing are included. https://tools.ietf.org/html/rfc6143#section-7.3.2

Jump to

Keyboard shortcuts

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