WIP: Collection optimizations and Transport

Tested and optimized collections used in Transport.
Additional Transport implementation.
This commit is contained in:
attermann committed 2023-11-21 06:21:03 -07:00
1 parent 263f589801
commit 8d943318a6
14 files changed
+742 -230

No files matched your search

+7 -7
View File
@@ -403,14 +403,14 @@ bool Packet::send() {
if (Transport::outbound(*this)) {
debug("Packet::send: successfully sent packet!!!");
//zreturn self.receipt
//z return self.receipt
// MOCK
return true;
}
else {
error("No interfaces could process the outbound packet");
_object->_sent = false;
//z_receipt = None;
//z _receipt = None;
return false;
}
}
@@ -432,14 +432,14 @@ bool Packet::resend() {
if (Transport::outbound(*this)) {
debug("Packet::resend: successfully sent packet!!!");
//zreturn self.receipt
//z return self.receipt
// MOCK
return true;
}
else {
error("No interfaces could process the outbound packet");
_object->_sent = false;
//zself.receipt = None;
//z self.receipt = None;
return false;
}
}
@@ -552,9 +552,9 @@ void PacketReceipt::check_timeout() {
_object->_concluded_at = Utilities::OS::time();
if (_object->_callbacks._timeout) {
//zthread = threading.Thread(target=self.callbacks.timeout, args=(self,))
//zthread.daemon = True
//zthread.start();
//z thread = threading.Thread(target=self.callbacks.timeout, args=(self,))
//z thread.daemon = True
//z thread.start();
}
}
}