v2ray-core/transport/internet/tls/connection.go

22 lines
272 B
Go
Raw Normal View History

2016-07-10 13:27:58 +00:00
package tls
import (
"crypto/tls"
)
type Connection struct {
*tls.Conn
}
func (this *Connection) Reusable() bool {
return false
}
func (this *Connection) SetReusable(bool) {}
func NewConnection(conn *tls.Conn) *Connection {
return &Connection{
Conn: conn,
}
}