mirror of https://github.com/v2ray/v2ray-core
22 lines
272 B
Go
22 lines
272 B
Go
|
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,
|
||
|
}
|
||
|
}
|