2016-01-31 16:01:28 +00:00
|
|
|
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 {
|
2016-04-25 22:13:26 +00:00
|
|
|
DispatchToOutbound(destination v2net.Destination) ray.InboundRay
|
2016-01-31 16:01:28 +00:00
|
|
|
}
|