Skip to main content

handle_connection

Function handle_connection 

Source
pub async fn handle_connection(
    stream: impl AsyncRead + AsyncWrite + Unpin + Send + 'static,
    command_tx: Option<Sender<TelnetCommand>>,
    probe_id: u32,
    session_id: Arc<RwLock<Option<String>>>,
) -> Result<()>
Expand description

Handle a single telnet connection with Atlas authentication.

Accepts any async stream: works with both TCP sockets (for local testing) and SSH channel streams (for production controller connections).