| Safe Haskell | Safe-Infered |
|---|
Control.Distributed.Process.Backend.SimpleLocalnet.Internal.Multicast
Description
Multicast utilities
- initMulticast :: forall a. Binary a => HostName -> PortNumber -> Int -> IO (IO (a, SockAddr), a -> IO ())
Documentation
Arguments
| :: forall a . Binary a | |
| => HostName | Multicast IP |
| -> PortNumber | Port number |
| -> Int | Maximum message size |
| -> IO (IO (a, SockAddr), a -> IO ()) |
Given a hostname and a port number, initialize the multicast system.
Note: it is important that you never send messages larger than the maximum message size; if you do, all subsequent communication will probably fail.
Returns a reader and a writer.
NOTE: By rights the two functions should be locally polymorphic in a,
but this requires impredicative types.