mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-13 22:45:13 +00:00
move transport methods from net to io
This commit is contained in:
1 parent
06b92bddcf
commit
008c285324
21 files changed
+249
-278
No files matched your search
@@ -44,7 +44,7 @@ func (this *UDPHub) WriteTo(payload []byte, dest v2net.Destination) (int, error)
|
||||
}
|
||||
|
||||
func (this *UDPHub) start() {
|
||||
this.accepting = true
|
||||
this.accepting = true
|
||||
for this.accepting {
|
||||
buffer := alloc.NewBuffer()
|
||||
nBytes, addr, err := this.conn.ReadFromUDP(buffer.Value)
|
||||
|
||||
Reference in new issue
Block a user