mmm-0.1.0.0: Minecraft 1.21.4 implementation in Haskell
Copyright(c) axionbuster 2025
LicenseBSD-3-Clause
Safe HaskellNone
LanguageGHC2021

M.IO.Internal.EffectSocket

Description

Implements the interpretation of the Talking effect in terms of socket connections, providing both client and server capabilities.

Synopsis

Documentation

withtalkingserver Source #

Arguments

:: forall (es :: [Effect]) a. (IOE :> es, State ParserState :> es, Concurrent :> es, NonDet :> es) 
=> Maybe String

host (Nothing = all interfaces)

-> String

port

-> Eff (Talking ': es) a

per-connection handler

-> Eff es a

final result

run server accepting multiple connections