Documentation ¶
Overview ¶
Package outbound contains all protocols for remote connection used by ZBProxy.
To implement an outbound protocol, one needs to do the following: 1. Implement the interface(s) below.
Index ¶
Constants ¶
View Source
const ( // TCP_FASTOPEN_CONNECT for out-going connections. TCP_FASTOPEN_CONNECT = 30 //nolint: revive,stylecheck )
Variables ¶
This section is empty.
Functions ¶
func SetMultiPathTCP ¶
Types ¶
type DialerControl ¶
func NewDialerControlFromOptions ¶
func NewDialerControlFromOptions(option *SocketOptions) DialerControl
type Outbound ¶
type Outbound interface { Dial(network, address string) (net.Conn, error) DialTCP(network string, laddr, raddr *net.TCPAddr) (*net.TCPConn, error) Handshake(r io.Reader, w io.Writer, network, address string) error }
var SystemOutbound Outbound = &systemOutbound{}
func NewSystemOutbound ¶
func NewSystemOutbound(options *SocketOptions) Outbound
Click to show internal directories.
Click to hide internal directories.