{-# OPTIONS_HADDOCK not-home #-}{-# LANGUAGE KindSignatures #-}moduleData.Conduit.Network.Internal(AppData(..),ServerSettings(..),ClientSettings(..))whereimportData.ByteString(ByteString)importNetwork.Socket(Socket,SockAddr)importData.Conduit(Source,Sink)importData.Conduit.Network.Utils(HostPreference)-- | The data passed to an @Application@.---- Since 0.6.0dataAppDatam=AppData{appSource::SourcemByteString,appSink::SinkByteStringm(),appSockAddr::SockAddr,appLocalAddr::MaybeSockAddr}-- | Settings for a TCP server. It takes a port to listen on, and an optional-- hostname to bind to.---- Since 0.6.0dataServerSettingsm=ServerSettings{serverPort::Int,serverHost::HostPreference,serverAfterBind::Socket->m(),serverNeedLocalAddr::Bool}-- | Settings for a TCP client, specifying how to connect to the server.---- Since 0.6.0dataClientSettings(m::*->*)=ClientSettings{clientPort::Int,clientHost::ByteString}