mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-17 01:53:36 -05:00
17 lines
388 B
Go
17 lines
388 B
Go
package dispatcher
|
|
|
|
import (
|
|
"github.com/v2ray/v2ray-core/app"
|
|
v2net "github.com/v2ray/v2ray-core/common/net"
|
|
"github.com/v2ray/v2ray-core/transport/ray"
|
|
)
|
|
|
|
const (
|
|
APP_ID = app.ID(1)
|
|
)
|
|
|
|
// PacketDispatcher dispatch a packet and possibly further network payload to its destination.
|
|
type PacketDispatcher interface {
|
|
DispatchToOutbound(destination v2net.Destination) ray.InboundRay
|
|
}
|