local-address-0.0.1: Functions to get local interface address

Portabilityportable
Stabilityexperimental
Maintainerex8k.hibino@gmail.com

Network.Socket.LocalAddress

Description

This package includes small functions to get local interface address. Following method is traditional technique to getSockName without sending packet.

Synopsis

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.

localAddressString :: String -> IO (Maybe String)Source

Get IPv4 local address string corresponding to remote IPv4 address string without sending any packet.