v2ray-core/app/dispatcher/dispatcher.go

17 lines
367 B
Go
Raw Normal View History

2016-01-31 17:01:28 +01:00
package dispatcher
import (
2016-08-20 20:55:45 +02:00
"v2ray.com/core/app"
"v2ray.com/core/proxy"
"v2ray.com/core/transport/ray"
2016-01-31 17:01:28 +01:00
)
const (
APP_ID = app.ID(1)
)
// PacketDispatcher dispatch a packet and possibly further network payload to its destination.
type PacketDispatcher interface {
2016-08-14 17:08:01 +02:00
DispatchToOutbound(meta *proxy.InboundHandlerMeta, session *proxy.SessionInfo) ray.InboundRay
2016-01-31 17:01:28 +01:00
}