Versions in this module Expand all Collapse all v1 v1.24.4 Aug 19, 2016 Changes in this version + var ErrClosedListener = errors.New("Listener is closed.") + func Dial(src v2net.Address, dest v2net.Destination) (internet.Connection, error) + func DialRaw(src v2net.Address, dest v2net.Destination) (internet.Connection, error) + func FindFirstValid(list []*AwaitingConnection) int + func ListenRawTCP(address v2net.Address, port v2net.Port) (internet.Listener, error) + func ListenTCP(address v2net.Address, port v2net.Port) (internet.Listener, error) + type AwaitingConnection struct + func (this *AwaitingConnection) Expired() bool + type Config struct + ConnectionReuse bool + func (this *Config) Apply() + func (this *Config) UnmarshalJSON(data []byte) error + type Connection struct + func NewConnection(dest string, conn net.Conn, manager ConnectionManager) *Connection + func (this *Connection) Close() error + func (this *Connection) LocalAddr() net.Addr + func (this *Connection) Read(b []byte) (int, error) + func (this *Connection) RemoteAddr() net.Addr + func (this *Connection) Reusable() bool + func (this *Connection) SetDeadline(t time.Time) error + func (this *Connection) SetReadDeadline(t time.Time) error + func (this *Connection) SetReusable(reusable bool) + func (this *Connection) SetWriteDeadline(t time.Time) error + func (this *Connection) SysFd() (int, error) + func (this *Connection) Write(b []byte) (int, error) + type ConnectionCache struct + func NewConnectionCache() *ConnectionCache + func (this *ConnectionCache) Cleanup() + func (this *ConnectionCache) Get(dest string) net.Conn + func (this *ConnectionCache) Recycle(dest string, conn net.Conn) + type ConnectionManager interface + Recycle func(string, net.Conn) + type ConnectionWithError struct + type RawConnection struct + func (this *RawConnection) Reusable() bool + func (this *RawConnection) SetReusable(b bool) + func (this *RawConnection) SysFd() (int, error) + type RawTCPListener struct + func (this *RawTCPListener) Accept() (internet.Connection, error) + func (this *RawTCPListener) Addr() net.Addr + func (this *RawTCPListener) Close() error + type TCPListener struct + func (this *TCPListener) Accept() (internet.Connection, error) + func (this *TCPListener) Addr() net.Addr + func (this *TCPListener) Close() error + func (this *TCPListener) KeepAccepting() + func (this *TCPListener) Recycle(dest string, conn net.Conn) Incompatible versions in this module v3.50.2+incompatible Oct 29, 2018 Other modules containing this package github.com/kevinMKG/vtsttt/v4