Copyright | (c) axionbuster 2025 |
---|---|
License | BSD-3-Clause |
Safe Haskell | None |
Language | GHC2021 |
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 :: Socket -> (Connection -> IO a) -> IO a
Documentation
data Connection Source #
a connection to either a server or a client
Connection | |
|
withcxfromsocket :: Socket -> (Connection -> IO a) -> IO a Source #
create a connection from a socket