Documentation ¶
Index ¶
- Variables
- func Client(netconn net.Conn, config *tls.Config, proto string) *tls.Conn
- func Dial(network, address string, config *tls.Config, proto string) (net.Conn, error)
- func DialTimeout(network, address string, to time.Duration, config *tls.Config, proto string) (net.Conn, error)
- func Listen(network, address string, config *tls.Config, protos ...string) (net.Listener, error)
- type Listener
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrListenerClosed = errors.New("listener closed")
Functions ¶
func DialTimeout ¶
Types ¶
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
Listener is the original listener that multiplexes connections to sublisteners.
func NewMuxListener ¶
NewMuxListener creates a new TLS multiplexing listener.
func (*Listener) GetConfigForClient ¶
GetConfigForClient returns the configuration for the given client hello. This is called by the tls package to resolve the configuration for a new connection.
Click to show internal directories.
Click to hide internal directories.