[][src]Module splinter::transport

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

inproc
multi
rawDeprecated
socket
tlsDeprecated
ws

A WebSocket-based transport implementation.

zmq

Enums

AcceptError
ConnectError
DisconnectError
ListenError
RecvError
SendError

Traits

Connection

A bi-directional connection between two nodes

Incoming
Listener
Transport

Factory-pattern based type for creating connections