1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-30 05:55:20 -05:00

merge sender and receiver to proxyman

This commit is contained in:
Darien Raymond
2017-01-15 00:17:06 +01:00
parent 8b00d6fc30
commit b8f01e0c03
13 changed files with 362 additions and 673 deletions

View File

@@ -2,6 +2,8 @@
package proxy
import (
"context"
"v2ray.com/core/common/net"
"v2ray.com/core/common/protocol"
"v2ray.com/core/transport/internet"
@@ -59,3 +61,8 @@ type OutboundHandler interface {
// Dispatch sends one or more Packets to its destination.
Dispatch(destination net.Destination, ray ray.OutboundRay)
}
// Dialer is used by OutboundHandler for creating outbound connections.
type Dialer interface {
Dial(ctx context.Context, destination net.Destination) (internet.Connection, error)
}