distributed-process-simplelocalnet-0.2.0.6: Simple zero-configuration backend for Cloud Haskell

Safe HaskellNone

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

Description

Multicast utilities

Synopsis

Documentation

initMulticastSource

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.