virtualnetwork

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 32 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VirtualNetwork

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

func New

func New(configuration *types.Configuration) (*VirtualNetwork, error)

func (*VirtualNetwork) AcceptBess added in v0.4.0

func (n *VirtualNetwork) AcceptBess(ctx context.Context, conn net.Conn) error

func (*VirtualNetwork) AcceptQemu

func (n *VirtualNetwork) AcceptQemu(ctx context.Context, conn net.Conn) error

func (*VirtualNetwork) AcceptStdio added in v0.6.1

func (n *VirtualNetwork) AcceptStdio(ctx context.Context, conn net.Conn) error

func (*VirtualNetwork) AcceptVfkit added in v0.6.2

func (n *VirtualNetwork) AcceptVfkit(ctx context.Context, conn net.Conn) error

func (*VirtualNetwork) AcceptVpnKit

func (n *VirtualNetwork) AcceptVpnKit(conn net.Conn) error

func (*VirtualNetwork) BytesReceived

func (n *VirtualNetwork) BytesReceived() uint64

func (*VirtualNetwork) BytesSent

func (n *VirtualNetwork) BytesSent() uint64

func (*VirtualNetwork) Dial

func (n *VirtualNetwork) Dial(network, addr string) (net.Conn, error)

func (*VirtualNetwork) DialContextTCP added in v0.3.0

func (n *VirtualNetwork) DialContextTCP(ctx context.Context, addr string) (net.Conn, error)

func (*VirtualNetwork) Listen

func (n *VirtualNetwork) Listen(network, addr string) (net.Listener, error)

func (*VirtualNetwork) Mux

func (n *VirtualNetwork) Mux() *http.ServeMux

Jump to

Keyboard shortcuts

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