net_ns

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TCP_SIMUL_CONN_TOTAL_LIMIT_NAME = "tcp/simul-connection"

	DEFAULT_TCP_DIAL_TIMEOUT        = 10 * time.Second
	DEFAULT_TCP_KEEP_ALIVE_INTERVAL = 10 * time.Second
	DEFAULT_TCP_BUFF_SIZE           = 1 << 16

	OPTION_DOES_NOT_EXIST_FMT = "option '%s' does not exist"
)
View Source
const (
	COOKIE_KV_KEY = "__cookies"
)

Variables

View Source
var (
	ErrInvalidPersistedCookies = errors.New("invalid persisted cookies")
)

Functions

func NewDNSnamespace

func NewDNSnamespace() *core.Namespace

func NewTcpNamespace

func NewTcpNamespace() *core.Namespace

Types

type TcpConn

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

func (*TcpConn) Equal

func (conn *TcpConn) Equal(ctx *core.Context, other core.Value, alreadyCompared map[uintptr]uintptr, depth int) bool

func (*TcpConn) GetGoMethod

func (conn *TcpConn) GetGoMethod(name string) (*core.GoFunction, bool)

func (*TcpConn) IsMutable

func (conn *TcpConn) IsMutable() bool

func (*TcpConn) PrettyPrint

func (conn *TcpConn) PrettyPrint(w *bufio.Writer, config *core.PrettyPrintConfig, depth int, parentIndentCount int)

func (*TcpConn) Prop

func (conn *TcpConn) Prop(ctx *core.Context, name string) core.Value

func (*TcpConn) PropertyNames

func (*TcpConn) PropertyNames(ctx *core.Context) []string

func (*TcpConn) SetProp

func (*TcpConn) SetProp(ctx *core.Context, name string, value core.Value) error

func (*TcpConn) ToSymbolicValue

func (conn *TcpConn) ToSymbolicValue(ctx *core.Context, encountered map[uintptr]symbolic.Value) (symbolic.Value, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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