udp-conduit alternatives and similar packages
Based on the "Conduit" category.
Alternatively, view udp-conduit alternatives based on common mentions on social networks and blogs.
-
pool-conduit
Persistence interface for Haskell allowing multiple storage methods. -
http-conduit
An HTTP client engine, intended as a base layer for more user-friendly packages. -
conduit-combinators
Type classes for mapping, folding, and traversing monomorphic containers -
twitter-conduit
Twitter API package for Haskell, including enumerator interfaces and Streaming API supports. -
csv-conduit
Flexible, fast and constant-space CSV library for Haskell using conduits -
hreq-conduit
A type dependent highlevel HTTP client library inspired by servant-client. -
simple-conduit
A simple streaming I/O library based on monadic folds -
crypto-conduit
Conduit interface for cryptographic operations (from crypto-api). -
http-conduit-browser
Browser interface to the http-conduit package -
fsnotify-conduit
Get filesystem notifications as a stream of events -
imagesize-conduit
Conduit sink to efficiently determine image dimensions -
hw-conduit-merges
Additional merge / join combinators for Conduit -
conduit-concurrent-map
Concurrent, order-preserving mapping Conduit for Haskell -
conduit-tokenize-attoparsec
Conduits for tokenizing streams. -
conduit-network-stream
A base layer for network protocols with Conduits
Updating dependencies is time-consuming.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of udp-conduit or a related project?
README
udp-conduit
Simple fire-and-forget style conduit parts (sources/sinks) for UDP traffic.
Here's an example that sends a message to UDP port 8888 on localhost:
{-# LANGUAGE OverloadedStrings #-}
import Conduit
import Conduit.UDP
main :: IO ()
main =
runConduitRes (yield "hello, world!\n" .| encodeUtf8C .| udpSink "127.0.0.1" 8888)
Here's an example where we continuously receive messages on port 5666 on localhost:
import Conduit
import Conduit.UDP
main :: IO ()
main =
runConduitRes (udpSourcePlain "127.0.0.1" 5666 500 .| stdoutC)
Now, here's an example where we receive messages on port 8001, encode them as hex digits, and then send them on to port 8002.
import Conduit
import Conduit.UDP
import Data.Char (toUpper)
main :: IO ()
main =
runConduitRes (udpSourcePlain "127.0.0.1" 8001 500 .| encodeBase16C .| udpSink "127.0.0.1" 8002)
Fun, huh? And simple!
You can use udpSource
to get the ip address of the sender together with the message in a
pair (ByteString, SockAddr)