common

package
v0.0.0-...-eb71c1c Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2018 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRootCertifcate = errors.New("invalid root certificate")
)

Functions

func FindFreePortTCP

func FindFreePortTCP(startPort int) (string, int)

func GetIconGdkPixbuf

func GetIconGdkPixbuf() *gdkpixbuf.Pixbuf

func GetLogoGdkPixbuf

func GetLogoGdkPixbuf() *gdkpixbuf.Pixbuf

func GetRootCAFromFile

func GetRootCAFromFile(file string) (*x509.CertPool, error)

func GetServerInsecure

func GetServerInsecure(addr string) string

func GtkAboutDialog

func GtkAboutDialog() *gtk.AboutDialog

func SetDefaultGtkTheme

func SetDefaultGtkTheme()

Types

type Capabilities

type Capabilities struct {
	//XpraVersion of running client xpra
	XpraVersion string
}

Capabilities for this client

type RemotonClient

type RemotonClient struct {
	Capabilities *Capabilities
	NatIF        nat.Interface
}

func (*RemotonClient) GetArch

func (c *RemotonClient) GetArch(args struct{}, reply *string) error

GetArch of running system it's the same runtime.GOARCH

func (*RemotonClient) GetCapabilities

func (c *RemotonClient) GetCapabilities(args struct{}, reply *Capabilities) error

func (*RemotonClient) GetExternalIP

func (c *RemotonClient) GetExternalIP(args struct{}, reply *net.IP) (err error)

func (*RemotonClient) GetExternalPort

func (c *RemotonClient) GetExternalPort(args struct{}, reply *int) error

func (*RemotonClient) GetOS

func (c *RemotonClient) GetOS(args struct{}, reply *string) error

GetOS of running system it's the same runtime.GOOS

Directories

Path Synopsis
p2p
nat
Package nat provides access to common network port mapping protocols.
Package nat provides access to common network port mapping protocols.

Jump to

Keyboard shortcuts

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