dispatcher.go 406 B

12345678910111213141516
  1. package dispatcher
  2. import (
  3. "github.com/v2ray/v2ray-core/app"
  4. "github.com/v2ray/v2ray-core/proxy"
  5. "github.com/v2ray/v2ray-core/transport/ray"
  6. )
  7. const (
  8. APP_ID = app.ID(1)
  9. )
  10. // PacketDispatcher dispatch a packet and possibly further network payload to its destination.
  11. type PacketDispatcher interface {
  12. DispatchToOutbound(meta *proxy.InboundHandlerMeta, session *proxy.SessionInfo) ray.InboundRay
  13. }