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

Safe HaskellNone
LanguageHaskell98

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

Description

Multicast utilities

Synopsis

Documentation

initMulticast Source

Arguments

:: 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.