Minecraft v0.1.0 Minecraft.Connection View Source
Maintains the state of a client’s connection, and provides utilities for sending and receiving
data. It is designed to be chained in a fashion similar to Plug.
Link to this section Summary
Functions
Closes the Connection
Continues receiving messages from the client
Initializes a Connection
Stores data received from the client in this Connection
Puts the Connection into the given error state
Sets the protocol for the Connection
Replaces the Connection’s underlying socket
Updates the Connection state
Pops a packet from the Connection
Sends a response to the client
Link to this section Types
The possible states a client/server can be in.
Allowed ranch transport types.
Link to this section Functions
Closes the Connection.
Continues receiving messages from the client.
To prevent a client from flooding our process mailbox, we only receive one message at a time,
and explicitly continue to receive messages once we finish processing the ones we have.
Initializes a Connection.
Stores data received from the client in this Connection.
Puts the Connection into the given error state.
Sets the protocol for the Connection.
Replaces the Connection’s underlying socket.
Updates the Connection state.
Pops a packet from the Connection.
Sends a response to the client.