use_item_jackolantern #124
@ -191,7 +191,6 @@ where
|
|||||||
C: PSOCipher,
|
C: PSOCipher,
|
||||||
{
|
{
|
||||||
let buf = pkt.as_bytes();
|
let buf = pkt.as_bytes();
|
||||||
trace!("[send buf] {:?}", buf);
|
|
||||||
let cbuf = cipher.encrypt(&buf)?;
|
let cbuf = cipher.encrypt(&buf)?;
|
||||||
socket.write_all(&cbuf).await?;
|
socket.write_all(&cbuf).await?;
|
||||||
Ok(())
|
Ok(())
|
||||||
|
@ -69,9 +69,10 @@ pub enum ClientRemovalError {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Error, Debug, PartialEq, Eq)]
|
#[derive(Error, Debug, PartialEq, Eq)]
|
||||||
#[error("get clients")]
|
|
||||||
pub enum GetClientsError {
|
pub enum GetClientsError {
|
||||||
|
#[error("invalid client")]
|
||||||
InvalidClient,
|
InvalidClient,
|
||||||
|
#[error("invalid area")]
|
||||||
InvalidArea,
|
InvalidArea,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@ pub enum ShipError {
|
|||||||
InvalidSlot(ClientId, u32),
|
InvalidSlot(ClientId, u32),
|
||||||
#[error("too many clients")]
|
#[error("too many clients")]
|
||||||
TooManyClients,
|
TooManyClients,
|
||||||
#[error("client error location {0}")]
|
#[error("client location {0}")]
|
||||||
ClientLocationError(ClientLocationError),
|
ClientLocationError(ClientLocationError),
|
||||||
#[error("maps error {0}")]
|
#[error("maps error {0}")]
|
||||||
MapsError(#[from] MapsError),
|
MapsError(#[from] MapsError),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user