1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-10-14 23:15:16 -04:00
v2fly/transport/internet/tls/connection.go

22 lines
266 B
Go
Raw Normal View History

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