Ddatadata InetPeek#The Internet Protocol version 4.Instances7HasAddressInfo, HasNameInfo, Family, Eq, Show, Storable, …HasAddressInfo InetDefined in socket-0.8.3.0 · System.Socket.Internal.AddressInfoHasNameInfo InetDefined in socket-0.8.3.0 · System.Socket.Internal.AddressInfoFamily InetDefined in socket-0.8.3.0 · System.Socket.Family.InetEq (SocketAddress Inet)Defined in socket-0.8.3.0 · System.Socket.Family.InetShow (SocketAddress Inet)Defined in socket-0.8.3.0 · System.Socket.Family.InetStorable (SocketAddress Inet)Defined in socket-0.8.3.0 · System.Socket.Family.Inetdata SocketAddress InetSocketAddressInetinetAddress :: InetAddressinetPort :: InetPortDefined in socket-0.8.3.0 · System.Socket.Family.Inet
Nnewtypenewtype InetAddressPeek#To avoid errors with endianess it was decided to keep this type abstract.Use inetAddressFromTuple and inetAddressToTuple for constructing and deconstructing custom addresses.Hint: Use the Storable instance. It exposes it exactly as found within an IP packet (big endian if you insist on interpreting it as a number).Another hint: Use getAddressInfo for parsing and suppress nameserver lookups:> getAddressInfo (Just "127.0.0.1") Nothing aiNumericHost :: IO [AddressInfo Inet Stream TCP] [AddressInfo {addressInfoFlags = AddressInfoFlags 4, socketAddress = SocketAddressInet {inetAddress = InetAddress 127.0.0.1, inetPort = InetPort 0}, canonicalName = Nothing}]Instances3Eq, Show, StorableEq InetAddressDefined in socket-0.8.3.0 · System.Socket.Family.InetShow InetAddressDefined in socket-0.8.3.0 · System.Socket.Family.InetStorable InetAddressDefined in socket-0.8.3.0 · System.Socket.Family.Inet
Nnewtypenewtype InetPortPeek#Instances8Enum, Eq, Integral, Num, Ord, Real, …Enum InetPortDefined in socket-0.8.3.0 · System.Socket.Family.InetEq InetPortDefined in socket-0.8.3.0 · System.Socket.Family.InetIntegral InetPortDefined in socket-0.8.3.0 · System.Socket.Family.InetNum InetPortDefined in socket-0.8.3.0 · System.Socket.Family.InetOrd InetPortDefined in socket-0.8.3.0 · System.Socket.Family.InetReal InetPortDefined in socket-0.8.3.0 · System.Socket.Family.InetShow InetPortDefined in socket-0.8.3.0 · System.Socket.Family.InetStorable InetPortDefined in socket-0.8.3.0 · System.Socket.Family.Inet
Ffamilydata family SocketAddress fPeek#The SocketAddress type is a data family. This allows to provide different data constructors depending on the socket family without knowing all of them in advance or the need to extend this core library.SocketAddressInet inetLoopback 8080 :: SocketAddress Inet SocketAddressInet6 inet6Loopback 8080 0 0 :: SocketAddress Inet6Instances8Eq, Show, Storable, SocketAddress, …Eq (SocketAddress Inet)Defined in socket-0.8.3.0 · System.Socket.Family.InetEq (SocketAddress Inet6)Defined in socket-0.8.3.0 · System.Socket.Family.Inet6Show (SocketAddress Inet)Defined in socket-0.8.3.0 · System.Socket.Family.InetShow (SocketAddress Inet6)Defined in socket-0.8.3.0 · System.Socket.Family.Inet6Storable (SocketAddress Inet)Defined in socket-0.8.3.0 · System.Socket.Family.InetStorable (SocketAddress Inet6)Defined in socket-0.8.3.0 · System.Socket.Family.Inet6data SocketAddress InetSocketAddressInetinetAddress :: InetAddressinetPort :: InetPortDefined in socket-0.8.3.0 · System.Socket.Family.Inetdata SocketAddress Inet6SocketAddressInet6inet6Address :: Inet6Addressinet6Port :: Inet6Portinet6FlowInfo :: Inet6FlowInfoinet6ScopeId :: Inet6ScopeIdDefined in socket-0.8.3.0 · System.Socket.Family.Inet6
vvalueinetAddressFromTuple :: (Word8, Word8, Word8, Word8) -> InetAddressPeek#Constructs a custom InetAddress.inetAddressFromTuple (127,0,0,1) == inetLoopback
vvalueinetAddressToTuple :: InetAddress -> (Word8, Word8, Word8, Word8)Peek#Deconstructs an InetAddress.