code wiki / (root) / nx_chat_session.nx

nx_chat_session.nx

buildroot/runtime/nx_chat_session.nx

4928 B140 linesdepth 4pulls 5 transitivereach 2 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_chat_session.nx -- concrete chat-session subtype. Extends nx_media_session (embedded as FIRST field per the OOP inheritance pattern). Wraps nx_chat_ring (the bounded-ring buffer promoted from nishi_video_room_synology.nx) and exposes the standard session vtable. Consumers: nx_video_room.nx -- chat alongside audio + video nx_call.nx -- chat in a 1:1 call nx_iot_intercom.nx -- async text between devices nx_cli_meet.nx -- text-only conferencing

dependencies 3 imports · 2 importers

nx_syscalls_x86_64.nx nx_media_session.nx nx_chat_ring.nx nx_chat_session.nx nx_call.nx nx_cli_meet.nx

imports: nx_syscalls_x86_64.nxnx_media_session.nxnx_chat_ring.nx

imported by: nx_call.nxnx_cli_meet.nx

structs

28struct nx_chat_session

consts

37const NX_CHAT_SESSION_BYTES: i64 = 160

functions

41func nx_chat_session_open_impl(ms: *nx_media_session) -> i64
51func nx_chat_session_close_impl(ms: *nx_media_session) -> i64
57func nx_chat_session_on_peer_join_impl(ms: *nx_media_session,
62func nx_chat_session_on_peer_leave_impl(ms: *nx_media_session,
67func nx_chat_session_on_tier_change_impl(ms: *nx_media_session,
73func nx_chat_session_health_check_impl(ms: *nx_media_session) -> i64
83func nx_chat_session_new(out: *nx_chat_session,
107func nx_chat_session_post(s: *nx_chat_session,
117func nx_chat_session_count(s: *nx_chat_session) -> i64
122func nx_chat_session_next_seq(s: *nx_chat_session) -> i64
127func nx_chat_session_get_at(s: *nx_chat_session, i: i64) -> *ChatSlot
132func nx_chat_session_get_by_seq(s: *nx_chat_session, seq: i64) -> *ChatSlot
137func nx_chat_session_copy_text(s: *nx_chat_session, slot: *ChatSlot,