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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user