Module

Erl.Kernel.Inet

Package
erl-kernel
Repository
id3as/purescript-erl-kernel

#CommonOptions Source

type CommonOptions :: Row Type -> Row Typetype CommonOptions r = (active :: Maybe SocketActive, buffer :: Maybe NonNegInt, dontroute :: Maybe Boolean, header :: Maybe NonNegInt, high_msgq_watermark :: Maybe NonNegInt, ipv6_v6only :: Maybe Boolean, low_msgq_watermark :: Maybe NonNegInt, priority :: Maybe Int, raw :: Maybe (List Raw), recbuf :: Maybe NonNegInt, recvtclass :: Maybe Boolean, recvtos :: Maybe Boolean, recvttl :: Maybe Boolean, reuseaddr :: Maybe Boolean, sndbuf :: Maybe NonNegInt, tclass :: Maybe NonNegInt, tos :: Maybe Int, ttl :: Maybe NonNegInt | r)

#ConnectedSocket Source

#Hostname Source

#InterfaceAddressRecord Source

type InterfaceAddressRecord ipType = { address :: ipType, broadcastAddress :: Maybe Ip4Address, dstAddress :: Maybe Ip4Address, netmask :: ipType }

#InterfaceName Source

#InterfaceOptions Source

newtype InterfaceOptions

Constructors

#ListenSocket Source

#LocalAddress Source

#PassiveSocket Source

data PassiveSocket :: SocketMessageBehaviour

Instances

#SocketMessageBehaviour Source

#SocketType Source

#OptionToErl Source

class OptionToErl :: Symbol -> Type -> Constraintclass OptionToErl sym option  where

Members

Instances

#OptionsToErl Source

class OptionsToErl :: Row Type -> RowList Type -> Constraintclass OptionsToErl r rl  where

Members

Instances

#OptionsValid Source

class OptionsValid :: SocketMessageBehaviour -> Row Type -> Constraintclass OptionsValid socketMessageBehaviour options 

Instances

#Socket Source

class Socket socket  where

Members

#defaultCommonOptions Source

#ip4 Source

ip4 :: Int -> Int -> Int -> Int -> Maybe Ip4Address

#ip6 Source

ip6 :: Int -> Int -> Int -> Int -> Int -> Int -> Int -> Int -> Maybe Ip6Address

#ipMulticastAll Source

#macOsSoReusePort Source

#optionsToErl Source

optionsToErl :: forall r rl. RowToList r rl => OptionsToErl r rl => Record r -> List Foreign

#windowsSoReuseAddr Source