Protocol Fields |
The Protocol type exposes the following members.
| Name | Description | |
|---|---|---|
| callbackId |
Buffer for callback-id.
| |
| callbackIdPos |
Length to read from callbackId | |
| Cancellation |
CancellationToken used in communication
| |
| CloseReason |
Reason CloseReason for closing the connection
| |
| controller |
Controller buffer, controller to call is within
| |
| controllerPos |
The length to read from the controller | |
| controllerToCall |
Cache controller since it will save time when same controller is called for each message
| |
| data |
Last byte operation read from the IBaseTransport | |
| disposed |
Flag for knowing if the object has been disposed
| |
| iam |
Buffer for the IAM message operation
| |
| iampos |
Size of the IAM message
| |
| InQueue |
Queue for incoming data
| |
| Interactive |
If true the protocol will respond with +OK messages for every valid operation. Only possible for full-duplex connections.
| |
| IsAuthenticated |
True if the Authenticate(IProtocol) method returned true
| |
| lastControllerAsByte |
Cache for last controller called
| |
| lastControllerKey |
Cache for the last controller called as BinaryKey | |
| lastMethodAsByte |
Cache for last method called
| |
| lastMethodKey |
Cache for the last method called as BinaryKey | |
| len |
Length to read from the IBaseTransport | |
| locker |
For blocking simultaneous access to certain areas
| |
| method |
Method buffer, method to call is within
| |
| methodPos |
The length to read from the method | |
| methodToCall |
Information about the method to be called ControllerDelegate | |
| OutQueue |
Queue for outgoing data
| |
| PubQueue |
Queue for messages published over a pub/sub pattern
| |
| read |
Read buffer
| |
| ReadState |
The ReadState for the ReadLoop
| |
| run |
The readloop will continue as long as this flag is true.
When false the connection will be disposed
| |
| size |
Size buffer
| |
| sizepos |
Size position (for knowing size to read from size buffer)
| |
| topic |
Topic parsed from the stream
| |
| topicpos |
Length of the topic
| |
| unsubcount |
Max messages to publish before doing automatic unsubscribe
| |
| unsubcountpos |
Length of unsub-count
| |
| validTopic |
Flag for knowing if the topic parsed is valid
| |
| write |
Write buffer
|