1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-29 05:25:21 -05:00

move transport methods from net to io

This commit is contained in:
Darien Raymond
2016-01-29 13:39:55 +00:00
parent 06b92bddcf
commit 008c285324
21 changed files with 249 additions and 278 deletions

View File

@@ -4,6 +4,7 @@ import (
"fmt"
"net"
v2io "github.com/v2ray/v2ray-core/common/io"
v2net "github.com/v2ray/v2ray-core/common/net"
)
@@ -43,7 +44,7 @@ func (server *Server) acceptConnections(listener *net.TCPListener) {
func (server *Server) handleConnection(conn net.Conn) {
for true {
request, err := v2net.ReadFrom(conn, nil)
request, err := v2io.ReadFrom(conn, nil)
if err != nil {
break
}