| ||||||||||||||||
| ||||||||||||||||
| ||||||||||||||||
Description | ||||||||||||||||
The Network.BSD module defines Haskell bindings to network programming functionality provided by BSD Unix derivatives. | ||||||||||||||||
Synopsis | ||||||||||||||||
Host names | ||||||||||||||||
type HostName = String | ||||||||||||||||
getHostName :: IO HostName | ||||||||||||||||
Calling getHostName returns the standard host name for the current processor, as set at boot time. | ||||||||||||||||
data HostEntry | ||||||||||||||||
| ||||||||||||||||
getHostByName :: HostName -> IO HostEntry | ||||||||||||||||
Resolve a HostName to IPv4 address. | ||||||||||||||||
getHostByAddr :: Family -> HostAddress -> IO HostEntry | ||||||||||||||||
Get a HostEntry corresponding to the given address and family. Note that only IPv4 is currently supported. | ||||||||||||||||
hostAddress :: HostEntry -> HostAddress | ||||||||||||||||
Service names | ||||||||||||||||
data ServiceEntry | ||||||||||||||||
| ||||||||||||||||
type ServiceName = String | ||||||||||||||||
getServiceByName :: ServiceName -> ProtocolName -> IO ServiceEntry | ||||||||||||||||
Get service by name. | ||||||||||||||||
getServiceByPort :: PortNumber -> ProtocolName -> IO ServiceEntry | ||||||||||||||||
Get the service given a PortNumber and ProtocolName. | ||||||||||||||||
getServicePortNumber :: ServiceName -> IO PortNumber | ||||||||||||||||
Get the PortNumber corresponding to the ServiceName. | ||||||||||||||||
Protocol names | ||||||||||||||||
type ProtocolName = String | ||||||||||||||||
type ProtocolNumber = CInt | ||||||||||||||||
data ProtocolEntry | ||||||||||||||||
| ||||||||||||||||
getProtocolByName :: ProtocolName -> IO ProtocolEntry | ||||||||||||||||
getProtocolByNumber :: ProtocolNumber -> IO ProtocolEntry | ||||||||||||||||
getProtocolNumber :: ProtocolName -> IO ProtocolNumber | ||||||||||||||||
defaultProtocol :: ProtocolNumber | ||||||||||||||||
This is the default protocol for the given service. | ||||||||||||||||
Port numbers | ||||||||||||||||
data PortNumber | ||||||||||||||||
| ||||||||||||||||
Network names | ||||||||||||||||
type NetworkName = String | ||||||||||||||||
type NetworkAddr = CULong | ||||||||||||||||
data NetworkEntry | ||||||||||||||||
| ||||||||||||||||
Produced by Haddock version 0.8 |