v2ray-core/app/dispatcher/dispatcher.go

18 lines
457 B
Go
Raw Normal View History

2016-01-31 17:01:28 +01:00
package dispatcher
import (
"github.com/v2ray/v2ray-core/app"
v2net "github.com/v2ray/v2ray-core/common/net"
2016-08-12 23:37:21 +02:00
"github.com/v2ray/v2ray-core/proxy"
2016-01-31 17:01:28 +01:00
"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 {
2016-08-12 23:37:21 +02:00
DispatchToOutbound(meta *proxy.InboundHandlerMeta, destination v2net.Destination) ray.InboundRay
2016-01-31 17:01:28 +01:00
}