1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-10-28 03:54:04 -04:00

introduct Connection interface

This commit is contained in:
v2ray
2016-04-27 23:01:31 +02:00
parent d9367efb2d
commit 94eab286c0
7 changed files with 105 additions and 80 deletions

View File

@@ -92,7 +92,7 @@ func (this *Server) Listen(port v2net.Port) error {
return nil
}
func (this *Server) handleConnection(connection *hub.TCPConn) {
func (this *Server) handleConnection(connection hub.Connection) {
defer connection.Close()
timedReader := v2net.NewTimeOutReader(120, connection)