1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-17 18:06:15 -05:00
v2fly/app/dispatcher/dispatcher.go

17 lines
335 B
Go
Raw Normal View History

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