connection.go 272 B

123456789101112131415161718192021
  1. package tls
  2. import (
  3. "crypto/tls"
  4. )
  5. type Connection struct {
  6. *tls.Conn
  7. }
  8. func (this *Connection) Reusable() bool {
  9. return false
  10. }
  11. func (this *Connection) SetReusable(bool) {}
  12. func NewConnection(conn *tls.Conn) *Connection {
  13. return &Connection{
  14. Conn: conn,
  15. }
  16. }