continue working on endpoints and reenabled reading packet options
This commit is contained in:
parent
a8d873d71b
commit
d6fbf79ded
2 changed files with 13 additions and 4 deletions
|
|
@ -3,7 +3,7 @@ use std::net::UdpSocket;
|
|||
use std::sync::{Arc, RwLock};
|
||||
use log::{error, info};
|
||||
use rand::random;
|
||||
use crate::prudp::packet::{flags, PRUDPPacket, VirtualPort};
|
||||
use crate::prudp::packet::{flags, PRUDPPacket, types, VirtualPort};
|
||||
use crate::prudp::sockaddr::PRUDPSockAddr;
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
@ -60,7 +60,7 @@ impl Endpoint{
|
|||
return;
|
||||
};
|
||||
|
||||
if ((packet.header.types_and_flags.get_flags() & flags::NEED_ACK) != 0) ||
|
||||
if //((packet.header.types_and_flags.get_flags() & flags::NEED_ACK) != 0) ||
|
||||
((packet.header.types_and_flags.get_flags() & flags::ACK) != 0) ||
|
||||
((packet.header.types_and_flags.get_flags() & flags::RELIABLE) != 0) ||
|
||||
((packet.header.types_and_flags.get_flags() & flags::MULTI_ACK) != 0) {
|
||||
|
|
@ -70,7 +70,12 @@ impl Endpoint{
|
|||
}
|
||||
|
||||
|
||||
match packet.header.types_and_flags.get_types() {
|
||||
types::SYN => {
|
||||
|
||||
}
|
||||
_ => unimplemented!()
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue