1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-12 15:14:05 -04:00
v2fly/app/dispatcher/dispatcher.go

17 lines
388 B
Go
Raw Normal View History

2016-01-31 11:01:28 -05: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 18:13:26 -04:00
DispatchToOutbound(destination v2net.Destination) ray.InboundRay
2016-01-31 11:01:28 -05:00
}