Skip to main content

Crate eggress_protocol_reverse

Crate eggress_protocol_reverse 

Source

Modules§

client
compat_pproxy
The deliberately small wire adapter for pproxy 2.7.9 backward links.
metrics
server

Enums§

ControlState
State of a reverse control channel.
ProtocolError
Errors specific to the reverse protocol.

Constants§

HANDSHAKE_ACCEPT
Handshake response: accept.
HANDSHAKE_REJECT
Handshake response: reject.

Functions§

client_auth_handshake
Perform the client-side auth handshake: send credentials, read response.
read_handshake
Read and validate the 1-byte handshake response.
redact_auth
Build a redacted form of an auth string suitable for logging.
relay_bidirectional
Relay data bidirectionally between two TCP streams.
relay_bidirectional_with_timeout
Relay data bidirectionally, ending the session when both sides reach end-of-stream. Neither direction is cancelled when the other observes EOF — half-close is preserved so the still-open direction can drain any application bytes the peer already produced.
server_auth_handshake
Perform the server-side auth handshake: read credentials, validate, respond.
write_auth
Write auth credentials as raw bytes to a stream.
write_handshake_accept
Write the 1-byte handshake response (accept).
write_handshake_reject
Write the 1-byte handshake response (reject).