1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-10-23 12:10:47 -04:00
v2fly/app/dispatcher/dispatcher.go

17 lines
406 B
Go
Raw Normal View History

2016-01-31 11:01:28 -05:00
package dispatcher
import (
"github.com/v2ray/v2ray-core/app"
2016-08-12 17:37:21 -04:00
"github.com/v2ray/v2ray-core/proxy"
2016-01-31 11:01:28 -05: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-14 11:08:01 -04:00
DispatchToOutbound(meta *proxy.InboundHandlerMeta, session *proxy.SessionInfo) ray.InboundRay
2016-01-31 11:01:28 -05:00
}