socket

package
v0.2.7-0...-d8d973c Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2017 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

View Source
const (
	TCP_CLOSE_WND = 10 * time.Second
)
View Source
const (
	WND_SIZE = 65536
)

Variables

View Source
var ErrTimeout = errors.New("i/o timeout")

Functions

func NewClientSocket

func NewClientSocket(
	network string,
	local uint64, lport uint32,
	mpx transport.Transport,
	onCloseCb func(),
) net.Conn

func NewServerSocket

func NewServerSocket(
	network string,
	local uint64, lport uint32,
	remote uint64, rport uint32,
	mpx transport.Transport,
) net.Conn

Types

type ConnState

type ConnState uint8

Jump to

Keyboard shortcuts

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