Skip to content
1 viewer

rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off

crates/cre8-app-network/src/relay.rs

cre8-app-network · module relay · src · 766 lines (605 code, 60 comment) · sha db5a4b91af8b2abf

Items

struct RelayDispatchResult static SESSIONS static ROOM_SESSIONS const DEFAULT_MAX_CHUNK_SIZE const DEFAULT_CHUNK_COLLECTOR_MAX_PENDING_MESSAGES const DEFAULT_CHUNK_COLLECTOR_MAX_PENDING_BYTES struct ChunkedMessage struct ChunkCollector impl ChunkCollector

Functions

By call-graph weight (PageRank; 1.0 is the average function). 51 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
room_session_mapsrc/relay.rs:26fn41607.6
session_mapsrc/relay.rs:21fn41605.2
unregister_peer_from_all_roomssrc/relay.rs:94fn133613.4
broadcast_to_roomsrc/relay.rs:139fn378943.2
ChunkCollector::with_limitssrc/relay.rs:478method81702.5
try_send_session_messagesrc/relay.rs:41fn92412.5
register_peer_sessionsrc/relay.rs:51fn52312.3
split_into_chunkssrc/relay.rs:367fn2821112.2
reassemble_chunkssrc/relay.rs:400fn71651.9
ChunkCollector::entry_accepts_chunksrc/relay.rs:528method42201.8
register_room_sessionsrc/relay.rs:64fn1241021.8
send_to_registered_sessionssrc/relay.rs:177fn224221.6
broadcast_to_allsrc/relay.rs:202fn82321.5
peer_in_roomsrc/relay.rs:108fn133411.4
unregister_room_sessionsrc/relay.rs:77fn166211.4
send_endpoint_payloadsrc/relay.rs:296fn392111.4
ChunkCollector::receivesrc/relay.rs:491method224831.4
dispatch_envelope_to_routesrc/relay.rs:244fn193421.4
send_to_peersrc/relay.rs:225fn186531.3
ChunkCollector::newsrc/relay.rs:474method31411.2
unregister_peer_sessionsrc/relay.rs:57fn62221.2
remove_peer_from_session_mapsrc/relay.rs:131fn52111.2
ChunkCollector::pending_countsrc/relay.rs:534method31601.1
dispatch_to_live_sessionsrc/relay.rs:264fn216131.1
dispatch_to_endpointsrc/relay.rs:286fn92111.1
ChunkCollector::can_receive_chunksrc/relay.rs:514method64201
ChunkCollector::can_append_chunksrc/relay.rs:521method63211
broadcast_to_all_exceptsrc/relay.rs:214fn82221
chunk_reassembly_headersrc/relay.rs:408fn144100.8
validate_chunk_setsrc/relay.rs:423fn124100.8
sorted_reassembly_chunkssrc/relay.rs:436fn51100.8
validate_chunk_sequencesrc/relay.rs:442fn83100.8
join_sorted_chunkssrc/relay.rs:451fn82100.8
ChunkCollector::evict_stalesrc/relay.rs:543method142110.6
room_session_countsrc/relay.rs:122fn82010.5
now_unixsrc/relay.rs:359fn31010.5
ChunkCollector::pending_bytessrc/relay.rs:538method31000.5
test_split_and_reassemblesrc/relay.rs:566fn111020.5
test_single_chunksrc/relay.rs:579fn101020.5
test_empty_payloadsrc/relay.rs:591fn81020.5
test_reassemble_missing_chunksrc/relay.rs:601fn81020.5
test_chunk_collectorsrc/relay.rs:611fn181040.5
test_collector_multiple_messagessrc/relay.rs:631fn161040.5
test_collector_ignores_duplicate_chunks_without_dropping_messagesrc/relay.rs:649fn151040.5
test_collector_rejects_new_messages_past_pending_limitsrc/relay.rs:666fn101040.5
test_collector_rejects_chunks_past_pending_byte_limitsrc/relay.rs:678fn91040.5
test_collector_releases_pending_bytes_on_complete_and_evictsrc/relay.rs:689fn241050.5
test_send_to_peer_removes_dead_session_from_roomssrc/relay.rs:715fn101050.5
test_broadcast_to_room_prunes_dead_senderssrc/relay.rs:727fn151050.5
test_full_session_outbox_is_prunedsrc/relay.rs:744fn101040.5
test_large_payloadsrc/relay.rs:756fn101020.5

Source not readable from this process.