Copyright | (c) axionbuster 2025 |
---|---|
License | BSD-3-Clause |
Safe Haskell | None |
Language | GHC2021 |
M.IO.Internal.Socket
Description
Implements reliable duplex stream connections for the Java Minecraft protocol, handling encryption and compression.
Synopsis
- data Connection = Connection {
- cxkey :: TVar (Maybe ByteString)
- cxcompth :: TVar Int
- cxinput :: InputStream Uninterpreted
- cxoutput :: OutputStream Uninterpreted
- withcxfromsocket :: MonadUnliftIO m => Socket -> (Connection -> m a) -> m a
Documentation
data Connection Source #
a connection to either a server or a client
Constructors
Connection | |
Fields
|
withcxfromsocket :: MonadUnliftIO m => Socket -> (Connection -> m a) -> m a Source #
create a connection from a socket