SocketConfig constructor

const SocketConfig({
  1. int? mark,
  2. Object? tcpFastOpen,
  3. TProxyMode? tproxy,
  4. bool? acceptProxyProtocol,
  5. XrayTargetStrategy? domainStrategy,
  6. String? dialerProxy,
  7. int? tcpKeepAliveInterval,
  8. int? tcpKeepAliveIdle,
  9. String? tcpCongestion,
  10. int? tcpWindowClamp,
  11. int? tcpMaxSeg,
  12. bool? penetrate,
  13. int? tcpUserTimeout,
  14. bool? v6only,
  15. @JsonKey.new(name: 'interface') String? interfaceName,
  16. bool? tcpMptcp,
  17. List<CustomSockoptConfig>? customSockopt,
  18. AddressPortStrategy? addressPortStrategy,
  19. HappyEyeballsConfig? happyEyeballs,
  20. List<String>? trustedXForwardedFor,
})

Implementation

const factory SocketConfig({
  int? mark,
  Object? tcpFastOpen,
  TProxyMode? tproxy,
  bool? acceptProxyProtocol,
  XrayTargetStrategy? domainStrategy,
  String? dialerProxy,
  int? tcpKeepAliveInterval,
  int? tcpKeepAliveIdle,
  String? tcpCongestion,
  int? tcpWindowClamp,
  int? tcpMaxSeg,
  bool? penetrate,
  int? tcpUserTimeout,
  bool? v6only,
  @JsonKey(name: 'interface') String? interfaceName,
  bool? tcpMptcp,
  List<CustomSockoptConfig>? customSockopt,
  AddressPortStrategy? addressPortStrategy,
  HappyEyeballsConfig? happyEyeballs,
  List<String>? trustedXForwardedFor,
}) = _SocketConfig;