hans-3.0.2: Network Stack

Safe HaskellNone
LanguageHaskell2010

Hans.Udp.State

Contents

Synopsis

Documentation

lookupRecv :: HasUdpState state => state -> Addr -> UdpPort -> IO (Maybe UdpBuffer) Source #

registerRecv :: HasUdpState state => state -> Addr -> UdpPort -> UdpBuffer -> IO (Maybe (IO ())) Source #

Register a listener for messages to this address and port, returning Just an action to unregister the listener on success.

nextUdpPort :: HasUdpState state => state -> Addr -> IO (Maybe UdpPort) Source #

Fast-path Resonder