Documentation
connectStream :: Address -> IO HandleSource
:: Address | |
-> (Handle -> Address -> IO ()) | Function called to handle connections |
-> IO (IO ()) | Returns an action you may use to kill the server |
Creates a TCP server that will hand off incoming connections to new threads.
Killing the server does not kill these forked threads.
The handle passed to your action will be automatically closed when that action returns.
reverseLookup :: SockAddr -> IO AddressSource