feat: stuff

This commit is contained in:
DJMrTV 2025-03-08 00:56:44 +01:00
commit b8d2cd7b09
3 changed files with 308 additions and 13 deletions

View file

@ -514,9 +514,9 @@ pub struct NewEncryptionPair<E: StreamCipher> {
pub struct CommonConnection {
pub user_id: u32,
session_id: u8,
pub socket_addr: PRUDPSockAddr,
pub server_port: VirtualPort
pub server_port: VirtualPort,
session_id: u8,
}
struct InternalConnection<E: CryptoHandlerConnectionInstance> {
@ -670,6 +670,8 @@ impl<T: CryptoHandler> InternalSocket<T> {
.write_to(&mut vec)
.expect("somehow failed to convert backet to bytes");
println!("{}", hex::encode(&vec));
self.socket
.send_to(&vec, dest.regular_socket_addr)
.await