Representation of a single UDP message
Moduleconduit-extra-1.3.8Haskell2010
Data.Conduit.Network.UDP
- 2 types
- 5 values
- Packageconduit-extra-1.3.8
- Exports7
- LanguageHaskell2010
- LicenceMIT
- SourceInternal.hs
UDP message representation
1 declarationBasic utilities
5 declarationsStream messages from the socket.
The given len defines the maximum packet size. Every produced item
contains the message payload and the origin address.
This function does not automatically close the socket.
Stream messages to the connected socket.
The payload is sent using send, so some of it might be lost.
This function does not automatically close the socket.
Stream messages to the connected socket.
The payload is sent using sendAll, so it might end up in multiple packets.
This function does not automatically close the socket.
Stream messages to the socket.
Every handled item contains the message payload and the destination
address. The payload is sent using sendTo, so some of it might be
lost.
This function does not automatically close the socket.
Stream messages to the socket.
Every handled item contains the message payload and the destination
address. The payload is sent using sendAllTo, so it might end up in
multiple packets.
This function does not automatically close the socket.
Helper Utilities
1 declarationWhich host to bind.
Note: The IsString instance recognizes the following special values:
*meansHostAny- "any IPv4 or IPv6 hostname"*4meansHostIPv4- "any IPv4 or IPv6 hostname, IPv4 preferred"!4meansHostIPv4Only- "any IPv4 hostname"*6meansHostIPv6@ - "any IPv4 or IPv6 hostname, IPv6 preferred"!6meansHostIPv6Only- "any IPv6 hostname"
Note that the permissive * values allow binding to an IPv4 or an
IPv6 hostname, which means you might be able to successfully bind
to a port more times than you expect (eg once on the IPv4 localhost
127.0.0.1 and again on the IPv6 localhost 0:0:0:0:0:0:0:1).
Any other value is treated as a hostname. As an example, to bind to the IPv4 local host only, use "127.0.0.1".
Instances5Eq, Ord, Read, Show, IsString
Eq HostPreferenceDefined in streaming-commons-0.2.3.0 · Data.Streaming.Network.InternalOrd HostPreferenceDefined in streaming-commons-0.2.3.0 · Data.Streaming.Network.InternalRead HostPreferenceDefined in streaming-commons-0.2.3.0 · Data.Streaming.Network.InternalShow HostPreferenceDefined in streaming-commons-0.2.3.0 · Data.Streaming.Network.InternalIsString HostPreferenceDefined in streaming-commons-0.2.3.0 · Data.Streaming.Network.Internal