mirror of
https://github.com/ratspeak/rsLXST
synced 2026-11-22 23:10:37 +00:00
telephony: adopt lossless link packet delivery
This commit is contained in:
1 parent
1457a03750
commit
a381eab55c
2 files changed
+6
-6
No files matched your search
@@ -2014,7 +2014,7 @@ pub struct TelephonyRnsEndpoint {
|
||||
pub manager: LinkManager,
|
||||
pub link_established_rx: mpsc::Receiver<LinkId>,
|
||||
pub link_identified_rx: mpsc::Receiver<(LinkId, IdentityHash)>,
|
||||
pub link_packet_rx: mpsc::Receiver<(Vec<u8>, LinkId)>,
|
||||
pub link_packet_rx: mpsc::UnboundedReceiver<(Vec<u8>, LinkId)>,
|
||||
pub link_closed_rx: mpsc::Receiver<LinkId>,
|
||||
transport_tx: mpsc::Sender<TransportMessage>,
|
||||
identity_pub_key: [u8; 64],
|
||||
@@ -2063,7 +2063,7 @@ impl TelephonyRnsEndpoint {
|
||||
);
|
||||
let (established_tx, link_established_rx) = mpsc::channel(64);
|
||||
let (identified_tx, link_identified_rx) = mpsc::channel(64);
|
||||
let (packet_tx, link_packet_rx) = mpsc::channel(256);
|
||||
let (packet_tx, link_packet_rx) = mpsc::unbounded_channel();
|
||||
let (closed_tx, link_closed_rx) = mpsc::channel(64);
|
||||
manager.set_link_established_channel(established_tx);
|
||||
manager.set_link_identified_channel(identified_tx);
|
||||
|
||||
@@ -844,13 +844,13 @@ fn rns_endpoint_try_step_feeds_established_and_packet_events() {
|
||||
}]
|
||||
);
|
||||
|
||||
let (packet_tx, packet_rx) = mpsc::channel(1);
|
||||
let (packet_tx, packet_rx) = mpsc::unbounded_channel();
|
||||
endpoint.manager.set_link_packet_channel(packet_tx.clone());
|
||||
endpoint.link_packet_rx = packet_rx;
|
||||
let remote = identity(0xD2);
|
||||
core.caller_identified(link_id, remote).unwrap();
|
||||
packet_tx
|
||||
.try_send((
|
||||
.send((
|
||||
signalling_packet(Signal::from(Profile::LatencyLow))
|
||||
.encode()
|
||||
.unwrap(),
|
||||
@@ -894,11 +894,11 @@ fn rns_endpoint_try_drive_once_executes_step_commands() {
|
||||
core.start_outgoing_call(link_id, identity(0xE2), None)
|
||||
.unwrap();
|
||||
|
||||
let (packet_tx, packet_rx) = mpsc::channel(1);
|
||||
let (packet_tx, packet_rx) = mpsc::unbounded_channel();
|
||||
endpoint.manager.set_link_packet_channel(packet_tx.clone());
|
||||
endpoint.link_packet_rx = packet_rx;
|
||||
packet_tx
|
||||
.try_send((
|
||||
.send((
|
||||
signalling_packet(Signal::from(Profile::LatencyLow))
|
||||
.encode()
|
||||
.unwrap(),
|
||||
|
||||
Reference in new issue
Block a user