Portability | portable |
---|---|
Stability | experimental |
Maintainer | ex8k.hibino@gmail.com |
This package includes small functions to get local interface address. Following method is traditional technique to getSockName without sending packet.
- localSockAddr' :: SockAddr -> IO (SockAddr, Socket)
- localSockAddr :: SockAddr -> IO SockAddr
- localAddress :: HostAddress -> IO (Maybe HostAddress)
- localAddressString :: String -> IO (Maybe String)
Documentation
localSockAddr' :: SockAddr -> IO (SockAddr, Socket)Source
Get local address and datagram socket corresponding to remote address without sending any packet.
localSockAddr :: SockAddr -> IO SockAddrSource
Get local address corresponding to remote address without sending any packet.
localAddress :: HostAddress -> IO (Maybe HostAddress)Source
Get IPv4 local address corresponding to remote IPv4 address without sending any packet.