Options for the Socket.connect method (TCP version).

Fields

port:Int

Port the client should connect to

@:optionaloptionallookup:Null<(String, DnsLookupOptions, DnsLookupCallbackSingle) ‑> Void>

Custom lookup function. Defaults to Dns.lookup.

@:optionaloptionallocalPort:Null<Int>

Local port to bind to for network connections.

@:optionaloptionallocalAddress:Null<String>

Local interface to bind to for network connections.

@:optionaloptionalhost:Null<String>

Host the client should connect to. Defaults to 'localhost'.

@:optionaloptionalfamily:Null<DnsAddressFamily>

Version of IP stack. Defaults to 4.