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

+3 -2
View File
@@ -5,6 +5,7 @@ import (
"sync"
"github.com/v2ray/v2ray-core/app"
v2io "github.com/v2ray/v2ray-core/common/io"
v2net "github.com/v2ray/v2ray-core/common/net"
"github.com/v2ray/v2ray-core/proxy"
"github.com/v2ray/v2ray-core/transport/ray"
@@ -32,14 +33,14 @@ func (this *OutboundConnectionHandler) Dispatch(packet v2net.Packet, ray ray.Out
writeFinish.Lock()
go func() {
v2net.ChanToWriter(this.ConnOutput, input)
v2io.ChanToWriter(this.ConnOutput, input)
writeFinish.Unlock()
}()
writeFinish.Lock()
}
v2net.ReaderToChan(output, this.ConnInput)
v2io.RawReaderToChan(output, this.ConnInput)
close(output)
return nil