ClientCommandHandler.ReceivedMessage
A private class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.
Buffer that rebuilds one length-prefixed message from a ClientCommandHandler socket stream: a 4-byte size, a 1-byte type, then the payload.
- Listed in Global namespace: C to D
- Nested in
ClientCommandHandler
Constructors
| Member | What it is |
|---|---|
ReceivedMessage(ClientCommandHandler handler) | Creates a ClientCommandHandler.ReceivedMessage from handler. |
Fields
| Member | What it is |
|---|---|
const int HeaderSize | Bytes before the payload: 4 for the size and 1 for the type. |
const int MaxMessageSize | Size of the receive buffer, 65535. |
4 private and internal fields
| Member | What it is |
|---|---|
private ClientCommandHandler handler | The ClientCommandHandler that gets finished messages. |
private bool hasReadMessageSize | Whether the size header has been read. |
private int leftToRead | Bytes still to come, including the type byte. |
private const int MessageSizeSize | Bytes in the size field, 4. |
Properties
Methods
2 private and internal methods
Used in
Members of other types that take, return or hold a ReceivedMessage: