Module
Erl.Kernel.Inet
- Package
- erl-kernel
- Repository
- id3as/purescript-erl-kernel
#ActiveError Source
#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)
#ConnectAddress Source
#ConnectError Source
#ConnectedSocket Source
data ConnectedSocket :: SocketType#HostAddress Source
#InterfaceAddressRecord Source
type InterfaceAddressRecord ipType = { address :: ipType, broadcastAddress :: Maybe Ip4Address, dstAddress :: Maybe Ip4Address, netmask :: ipType }#InterfaceName Source
type InterfaceName = Atom#InterfaceOptions Source
newtype InterfaceOptionsConstructors
InterfaceOptions { addresses :: Maybe InterfaceAddresses, flags :: List InterfaceFlags, hwAddress :: Binary }
#Ip4Address Source
#Ip6Address Source
#IpAddressUnion Source
type IpAddressUnion = Union (Ip4Address |+| Ip6Address |+| Nil)#ListenSocket Source
data ListenSocket :: SocketType#LocalAddress Source
type LocalAddress = String#PassiveSocket Source
data PassiveSocket :: SocketMessageBehaviourInstances
(Lacks "active" options) => OptionsValid PassiveSocket options
#PosixError Source
data PosixErrorConstructors
EAddrinuseEAddrnotavailEAfnosupportEAlreadyEConnabortedEConnrefusedEConnresetEDestaddrreqEHostdownEHostunreachEInprogressEIsconnEMsgsizeENetdownENetunreachENopkgENoprotooptENotconnENottyENotsockEProtoEProtonosupportEPrototypeESocktnosupportETimedoutEWouldblockEXbadportEXbadseqFile PosixError
Instances
#SocketAddress Source
#SocketType Source
data SocketType#OptionToErl Source
class OptionToErl :: Symbol -> Type -> Constraintclass OptionToErl sym option where
Members
Instances
OptionToErl "raw" (List Raw)(IsSymbol name, ToErl a) => OptionToErl name (List a)(IsSymbol name, ToErl a) => OptionToErl name a
#OptionsToErl Source
class OptionsToErl :: Row Type -> RowList Type -> Constraintclass OptionsToErl r rl where
Members
Instances
OptionsToErl r Nil(IsSymbol sym, Cons sym (Maybe a) t1 r, OptionsToErl r tail, OptionToErl sym a) => OptionsToErl r (Cons sym (Maybe a) tail)(IsSymbol sym, Cons sym a t1 r, OptionsToErl r tail, OptionToErl sym a) => OptionsToErl r (Cons sym a tail)
#OptionsValid Source
class OptionsValid :: SocketMessageBehaviour -> Row Type -> Constraintclass OptionsValid socketMessageBehaviour options
Instances
OptionsValid ActiveSocket options(Lacks "active" options) => OptionsValid PassiveSocket options
#defaultCommonOptions Source
defaultCommonOptions :: forall r. Union r (CommonOptions ()) (CommonOptions r) => Record r -> Record (CommonOptions r)#ip4Any Source
ip4Any :: Ip4Address#ip6Any Source
ip6Any :: Ip6Address#ipMulticastAll Source
ipMulticastAll :: Boolean -> Raw#isMulticast Source
isMulticast :: IpAddress -> Boolean#macOsSoReusePort Source
macOsSoReusePort :: Boolean -> Raw#ntoa4 Source
ntoa4 :: Ip4Address -> String#ntoa6 Source
ntoa6 :: Ip6Address -> String#optionsToErl Source
optionsToErl :: forall r rl. RowToList r rl => OptionsToErl r rl => Record r -> List Foreign#parseIp4Address Source
parseIp4Address :: String -> Maybe Ip4Address#parseIp6Address Source
parseIp6Address :: String -> Maybe Ip6Address#windowsSoReuseAddr Source
windowsSoReuseAddr :: Boolean -> Raw