mirror of https://github.com/v2ray/v2ray-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
272 B
22 lines
272 B
9 years ago
|
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,
|
||
|
}
|
||
|
}
|