Module splinter::transport[][src]

Expand description

Traits and implementations for low-level message-based network communication.

The splinter::transport module defines traits for low-level networking required to pass messages between two endpoints. The primary traits defined here are Connection, Listener, and Transport.

Messages are passed between the endpoints via a Connection. The sending side calls Connection::send and the receiving side calls Connection::recv. Communication across a transport is bi-directional, and both sides of the Connection are a sender and receiver.

A connection can be created in two ways. The first is by initiating the connection by calling Connection::connect. The second is by listening on a local endpoint for new connections initiated by others; this is accomplished with a Listener and specifically calling Listener::accept.

Modules

rawDeprecated

A WebSocket-based transport implementation.

Enums

Traits

A bi-directional connection between two nodes

Factory-pattern based type for creating connections