listener

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: GPL-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create() (IConnector, IConnAcceptor)

Types

type ConnWrapper added in v1.0.4

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

func (*ConnWrapper) GetConn added in v1.0.4

func (wrapper *ConnWrapper) GetConn() net.Conn

func (*ConnWrapper) GetParams added in v1.0.4

func (wrapper *ConnWrapper) GetParams() map[string]interface{}

type IConnAcceptor

type IConnAcceptor interface {
	AcceptConn() (*ConnWrapper, error)
}

type IConnector

type IConnector interface {
	Connect(connType connector.SocketType, ip string, port int, params map[string]interface{}, failFunc func(error, map[string]interface{}))
}

Jump to

Keyboard shortcuts

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