feat: stuff
This commit is contained in:
parent
6f02339464
commit
b8d2cd7b09
3 changed files with 308 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue