Safe Haskell | None |
---|---|
Language | Haskell2010 |
Gini.Network.Internal
Description
Internal functions for networking
Synopsis
- mkMessage :: (HasNetworkConfig env, MonadReader env m) => MessageBody -> m Message
- sendMessage :: HasNetworkConfig env => Peer -> MessageBody -> ReaderT env STM ()
- sendMessages :: HasNetworkConfig env => [(Peer, MessageBody)] -> ReaderT env STM ()
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.