class

TCPProxy

Inherits Reference < Object

Constants

BUFFER_SIZE = 4096
HANDSHAKE_MAX = 4096
HANDSHAKE_PREFIX = "ROCO2 "
STATUS_ERR = "ROCO-ERR"
STATUS_OK = "ROCO-OK"

End-to-end connection status, sent back up the chain once the far end has been reached (or failed). Lets the originator tear down the client instead of leaving it half-open when a downstream hop cannot reach the target.

Constructors

new(config : Config)

Instance methods

handle_client(client : TCPSocket) : Void