22 lines
698 B
Rust
22 lines
698 B
Rust
use utils::null_string::NullTerminatedString;
|
|
use crate::packet::{send_packet, Packet, PacketPayload};
|
|
use crate::packet_type::PacketType;
|
|
use crate::packets::cli_char_list_req::CliCharListReq;
|
|
use crate::packets::*;
|
|
use std::collections::HashMap;
|
|
use std::env;
|
|
use std::error::Error;
|
|
use std::sync::Arc;
|
|
use tokio::net::TcpStream;
|
|
use tokio::sync::Mutex;
|
|
use tonic::{Code, Status};
|
|
use tracing::{debug, error, info, warn};
|
|
use utils::service_discovery;
|
|
|
|
pub(crate) async fn handle_char_list_req(stream: &mut TcpStream, packet: Packet) -> Result<(), Box<dyn Error + Send + Sync>> {
|
|
let request = CliCharListReq::decode(packet.payload.as_slice());
|
|
debug!("{:?}", request);
|
|
|
|
Ok(())
|
|
}
|