Available on macro
Binds struct sockaddr.
struct sockaddr
See also:
https://aantron.github.io/luv/luv/Luv/Sockaddr
staticread onlyport:Null<Int>
Extracts the port in a network address.
@:noExprstaticipv4(host:String, port:Int):Result<SockAddr>
Converts a string and port number to an IPv4 struct sockaddr.
@:noExprstaticipv6(host:String, port:Int):Result<SockAddr>
Converts a string and port number to an IPv6 struct sockaddr.
@:noExprstatictoString(this:SockAddr):String
Converts a network address to a string.