Safe Haskell | None |
---|---|
Language | Haskell2010 |
- udpSink :: (MonadResource m, IOData a) => String -> PortNumber -> ConduitM a o m ()
- udpSource :: (MonadResource m, IOData a, MonoFoldable a) => String -> PortNumber -> ConduitM i a m ()
Documentation
:: (MonadResource m, IOData a) | |
=> String | address to destination |
-> PortNumber | port number on destination |
-> ConduitM a o m () | Can be viewed as a |
Fire-and-forget style UDP sink. It will attempt to connect to the
specified destination, and if it succeeds it will start hurdling data
from upstream toward the destination. Must be used with
runConduitRes
, since it uses a finite resource (sockets)
:: (MonadResource m, IOData a, MonoFoldable a) | |
=> String | address to bind to |
-> PortNumber | port number to bind to |
-> ConduitM i a m () | Can be viewed as a |
Fire-and-forget style UDP source. It will attempt to listen on the
specified interface and port, and if it succeeds it can read contents
being sent to that interface and port. Must be used with
runConduitRes
, since it uses a finite resource (sockets)