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

22 lines
266 B
Go
Raw Normal View History

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