outbound_connection.go 372 B

123456789101112
  1. package connhandler
  2. import (
  3. v2net "github.com/v2ray/v2ray-core/common/net"
  4. "github.com/v2ray/v2ray-core/transport/ray"
  5. )
  6. // An OutboundConnectionHandler handles outbound network connection for V2Ray.
  7. type OutboundConnectionHandler interface {
  8. // Dispatch sends one or more Packets to its destination.
  9. Dispatch(firstPacket v2net.Packet, ray ray.OutboundRay) error
  10. }