courier- A message-passing library for simplifying network applications

Portabilitynon-portable (uses STM)
Safe HaskellNone



UDP transports deliver messages to other Endpoints using UDP/IP.

Each UDP transport manages socket bindings on behalf of Endpoints, dynamically opening / closing new sockets as needed to deliver messages to other Endpoints using UDP transports.

There is no reuse of sockets on the sending side, so while messages will be received on a known bound port, the remote sending port will vary arbitrarily.

This transport only reads at most 512 bytes from incoming packets: constraining the packet size avoids fragmentation. Applications using this transport should take responsibility for fragmentation, reassembly, retransmission of lost packets, and congestion control.