distributed-process-simplelocalnet-0.3.0: Simple zero-configuration backend for Cloud Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Control.Distributed.Process.Backend.SimpleLocalnet.Internal.Multicast

Description

Multicast utilities

Synopsis

Documentation

initMulticast Source #

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.