move transport methods from net to io

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

No files matched your search

+1 -1
View File
@@ -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)