socketcore

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AF_UNSPEC = 0
	AF_INET   = 2
	AF_INET6  = 23
)
View Source
const (
	CLIENT_TYPENAME = "tcp{client}"
)
View Source
const (
	MASTER_TYPENAME = "tcp{master}"
)

Variables

This section is empty.

Functions

func Loader

func Loader(L *lua.LState) int

Types

type Client

type Client struct {
	Conn    net.Conn
	Timeout time.Duration
	Reader  *bufio.Reader
}

type DNS

type DNS struct {
}

type Master

type Master struct {
	Listener net.Listener
	BindAddr string
	BindPort lua.LValue
	Timeout  time.Duration
	Family   int
	Options  map[string]lua.LValue
}

Jump to

Keyboard shortcuts

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