Crate socket_collection[−][src]
Overview
The goal of this crate is to provide a collection of async sockets which can be used out of the
box with mio
event loop. As a simple example, using stream based protocols will require some
sort of mechanism to determine the boundaries of a message etc., and this crate provides default
implementation to handle those and abstract the boilerplate from the user libs.
Structs
TcpSock |
Enums
SocketError |
Common module specific error |
Constants
MAX_MSG_AGE_SECS |
Maximum age of a message waiting to be sent. If a message is older, the queue is dropped. |
MAX_PAYLOAD_SIZE | |
MSG_DROP_PRIORITY |
Minimum priority for droppable messages. Messages with lower values will never be dropped. |
Type Definitions
Priority |
Priority of a message to be sent by Crust. A lower value means a higher priority, so Priority 0
is the highest one. Low-priority messages will be preempted if need be to allow higher priority
messages through. Messages with a value |
Res |
|