network

package
v0.0.0-...-bd21981 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAddress = ":10080"
View Source
const DefaultNetwork = "tcp"
View Source
const DefaultPolicy = `` /* 173-byte string literal not displayed */
View Source
const DefaultSWF = `<SWF src="0/app/1430/welcome.swf" />`

Variables

This section is empty.

Functions

func AuthAnswer

func AuthAnswer(input string) (ret string, err error)

func NewMutexLogger

func NewMutexLogger(w io.Writer) func(format string, args ...interface{})

func NewXMLConnection

func NewXMLConnection(impl net.Conn) *xmlConnection

Types

type Listener

type Listener struct {
	Policy  string
	SWF     string
	OnError func(err error)
	Handler func(XMLConnection)
}

func NewListener

func NewListener() *Listener

func (*Listener) ListenAndServe

func (lis *Listener) ListenAndServe(ctx context.Context, network, address string) (err error)

func (*Listener) Start

func (lis *Listener) Start(ctx context.Context, network, address string) (waitForExit func())

type XMLConnection

type XMLConnection interface {
	io.Closer
	Read(context.Context) (string, error)
	Write(context.Context, string) error
}

func NewXMLConnectionDebugger

func NewXMLConnectionDebugger(impl XMLConnection, log func(format string, args ...interface{})) XMLConnection

Jump to

Keyboard shortcuts

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