Frontends reach a server only through ServerSession

session.connection() is gone: the session hands out the model, our ids,
the microphone and speakers, ping and connection info, the server's
unique id, icon and avatar stores, myTeamSpeak, the connect error and a
blocking disconnectNow. The connection's remaining actions move into
helpers the session hands out instead of forwarding each method:
ClientAdmin (move, kick, ban, groups, talk power, poke, client details),
ChannelFiles (listing, mkdir, rename, delete, transfers and their
sounds) and ClientContacts (display names, volume, auto-mute, whisper
policy, sightings); ChannelAdmin also takes join, move, subscribe and
description requests. Dialogs take the session instead of the
connection.

Android's network handover now uses disconnectNow, which also cancels a
pending auto-reconnect.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-12 20:58:25 +00:00
co-authored by Claude Opus 5.5
parent 9107bdd02e
commit de42429d08
34 changed files with 966 additions and 743 deletions
+8 -4
View File
@@ -226,15 +226,19 @@ core/ eu.lixko.ts3j.client
│ AwayMessages, …; AppDirs finds it, ProfileFiles writes it
│ privately and all at once
├── session
│ ├── ServerSession one server tab's state and actions, whatever the frontend
│ ├── ServerSession one server tab's state and actions, whatever the frontend;
│ │ the frontends' only way in to a server
│ └── Sessions what the servers share: the microphone, away state, nickname
├── net
│ ├── TeamspeakConnection ties socket + audio + model; runs requests on its own pool
│ ├── TeamspeakConnection ties socket + audio + model; the connection lifecycle
│ ├── ConnectionEventHandler server events → model changes, sounds and log lines
│ ├── ServerModel channel/client state; ChannelNode/ClientEntry view models
│ ├── ChannelAdmin/BanAdmin/AvatarAdmin channel editing, the ban list, our own avatar
│ ├── ClientAdmin/ChannelAdmin what we do to clients and channels
│ ├── BanAdmin/AvatarAdmin/… the ban list, our own avatar and the other admin lists
│ ├── ChannelFiles channel file browsing, up- and downloads
│ ├── ClientContacts the contact list applied to a server's clients
│ ├── IconRepository server icons (avatar/ holds the client avatar cache)
│ ├── filetransfer channel file browsing, up- and downloads
│ ├── filetransfer the file transfer protocol
│ └── ConnectionListener frontend callbacks
├── audio the voice pipelines every platform shares
│ ├── AudioBackend/AudioIo what a platform supplies: devices, lines, Opus