dispatcher.go 457 B

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