gini-network-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Gini.Network.Internal

Description

Internal functions for networking

Synopsis

Documentation

mkMessage :: (HasNetworkConfig env, MonadReader env m) => MessageBody -> m Message #

Create a message with the given body.

sendMessage :: HasNetworkConfig env => Peer -> MessageBody -> ReaderT env STM () #

Send a UDP message to a peer.

sendMessages :: HasNetworkConfig env => [(Peer, MessageBody)] -> ReaderT env STM () #

Send a UDP messages to peers.