1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-17 11:09:12 -04:00

rewrite ray -> pipe

This commit is contained in:
Darien Raymond
2018-04-17 00:31:10 +02:00
parent 64ebba3cff
commit 5d23604713
29 changed files with 347 additions and 598 deletions

View File

@@ -12,7 +12,6 @@ import (
"v2ray.com/core/common/net"
"v2ray.com/core/common/protocol"
"v2ray.com/core/transport/internet"
"v2ray.com/core/transport/ray"
)
// An Inbound processes inbound connections.
@@ -27,7 +26,7 @@ type Inbound interface {
// An Outbound process outbound connections.
type Outbound interface {
// Process processes the given connection. The given dialer may be used to dial a system outbound connection.
Process(context.Context, ray.OutboundRay, Dialer) error
Process(context.Context, *core.Link, Dialer) error
}
// Dialer is used by OutboundHandler for creating outbound connections.