tcp

package
v0.0.0-...-19553bc Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBindTwice = fmt.Errorf("bind twice")
View Source
var ErrNotTCPAddr = fmt.Errorf("not tcp addr")

Functions

This section is empty.

Types

type Channel

type Channel struct {
	channel.DefaultNetChannel
}

func (*Channel) UnsafeConnect

func (c *Channel) UnsafeConnect(localAddr net.Addr, remoteAddr net.Addr) error

type ServerChannel

type ServerChannel struct {
	channel.DefaultNetServerChannel
	// contains filtered or unexported fields
}

func (*ServerChannel) IsActive

func (c *ServerChannel) IsActive() bool

func (*ServerChannel) UnsafeAccept

func (c *ServerChannel) UnsafeAccept() (channel.Channel, channel.Future)

func (*ServerChannel) UnsafeBind

func (c *ServerChannel) UnsafeBind(localAddr net.Addr) error

func (*ServerChannel) UnsafeClose

func (c *ServerChannel) UnsafeClose() error

Jump to

Keyboard shortcuts

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