outbound_connection.go 344 B

1234567891011121314
  1. package proxy
  2. import (
  3. v2net "github.com/v2ray/v2ray-core/common/net"
  4. "github.com/v2ray/v2ray-core/transport/ray"
  5. )
  6. type OutboundConnectionHandlerFactory interface {
  7. Create(config interface{}) (OutboundConnectionHandler, error)
  8. }
  9. type OutboundConnectionHandler interface {
  10. Dispatch(firstPacket v2net.Packet, ray ray.OutboundRay) error
  11. }