Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBindUnsupported = errors.New("bind unsupported")
)
Functions ¶
This section is empty.
Types ¶
type BindOption ¶
type BindOption func(opts *BindOptions)
func BacklogBindOption ¶
func BacklogBindOption(backlog int) BindOption
func MuxBindOption ¶
func MuxBindOption(mux bool) BindOption
func UDPConnTTLBindOption ¶
func UDPConnTTLBindOption(ttl time.Duration) BindOption
func UDPDataBufferSizeBindOption ¶
func UDPDataBufferSizeBindOption(size int) BindOption
func UDPDataQueueSizeBindOption ¶
func UDPDataQueueSizeBindOption(size int) BindOption
type BindOptions ¶
type ConnectOption ¶
type ConnectOption func(opts *ConnectOptions)
func DialerConnectOption ¶ added in v0.0.11
func DialerConnectOption(dialer xnet.Dialer) ConnectOption
type ConnectOptions ¶
type IConnector ¶
type IConnector interface { Init(metadata.IMetaData) error Connect(ctx context.Context, conn net.Conn, network, address string, opts ...ConnectOption) (net.Conn, error) }
IConnector is responsible for connecting to the destination address.
type IHandshaker ¶
type Option ¶
type Option func(opts *Options)
func AuthOption ¶
func LoggerOption ¶
func TLSConfigOption ¶
Click to show internal directories.
Click to hide internal directories.