Module
Node.Net.SocketAddress
- Package
- purescript-node-net
- Repository
- purescript-node/purescript-node-net
#Ipv4SocketAddressOptions Source
type Ipv4SocketAddressOptions = { address :: String, port :: Int }
address
<string> The network address as either an IPv4 or IPv6 string. Default: '127.0.0.1' if family is 'ipv4'; '::' if family is 'ipv6'.
family
<string> One of either 'ipv4' or 'ipv6'. Default: 'ipv4'.
flowlabel
<number> An IPv6 flow-label used only if family is 'ipv6'.
port
<number> An IP port.
#Ipv6SocketAddressOptions Source
type Ipv6SocketAddressOptions = { address :: String, flowLabel :: Int, port :: Int }
#address Source
address :: forall ipFamily. SocketAddress ipFamily -> String
#family Source
family :: forall ipFamily. SocketAddress ipFamily -> IpFamily
#port Source
port :: forall ipFamily. SocketAddress ipFamily -> Int