1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| func Listen(network, laddr string, config *Config) (net.Listener, error)
func NewListener(inner net.Listener, config *Config) net.Listener
func LoadX509KeyPair(certFile, keyFile string) (cert Certificate, err error)
func X509KeyPair(certPEMBlock, keyPEMBlock []byte) (cert Certificate, err error)
func NewLRUClientSessionCache(capacity int) ClientSessionCache
func Client(conn net.Conn, config *Config) *Conn
func Server(conn net.Conn, config *Config) *Conn
func Dial(network, addr string, config *Config) (*Conn, error)
func DialWithDialer(dialer *net.Dialer, network, addr string, config *Config) (*Conn, error)
|