blob: b10dfc0176ef9f8066453ac233d108ebbc2c1ccb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
use log::{error, info};
use crate::CLIENT_ID_COUNTER;
use super::generic::generic_handle_connection;
pub fn run() {
let id = CLIENT_ID_COUNTER.fetch_add(1, std::sync::atomic::Ordering::Relaxed);
info!("reading packets from stdin");
if let Err(e) = generic_handle_connection(id, std::io::stdin(), std::io::stdout()) {
error!("{e}");
}
}
|