module

Hop::TcpBearer

The raw-TCP Internet bearer: opaque Hop frames over TCP, core does the Noise. TCP is a stream, so each drained packet is length-prefixed (4-byte big-endian) and reassembled on the far side.

Constants

MAX_FRAME_BYTES = 1 << 20

Class methods

dial(endpoint : Endpoint, host : String, port : Int32) : TCPSocket
Source
listen(endpoint : Endpoint, port : Int32, host : String = "0.0.0.0") : TCPServer
Source
send_framed(sock : IO, buf : Bytes) : Nil
Source