Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
SimTX Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
SimTX API/Session status
(section)
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Life cycle == <syntaxhighlight lang="text"> client server | -- [10] receiver_start / [12] transmitter_start --> | | <------------- [10] session_status REJECTED ------- | code + reason, then close | or | | <------------- [10] session_status BOUND ---------- | session_id, station, frequency | ... stream runs ... | | <------------- [10] session_status UPDATED -------- | update_reason + current state | <------------- [10] session_status UPDATED -------- | | ... stream runs ... | | <------------- [10] session_status ENDED ---------- | code + reason, then close </syntaxhighlight> {| class="wikitable" ! State !! When !! Afterwards |- | <code>BOUND</code> || Once, when the start is accepted. || The stream begins: [[SimTX API/Packets/IqStreamDescriptor|IqStreamDescriptor]] for a receiver, [[SimTX API/Packets/TxQueue|TxQueue]] and [[SimTX API/Packets/TxAccept|TxAccept]] for a transmitter. |- | <code>REJECTED</code> || Instead of <code>BOUND</code>, when the start cannot be accepted. || The connection closes. |- | <code>UPDATED</code> || Any number of times, when something about the running session changed. || The session continues. |- | <code>ENDED</code> || When the server stops a running session. || The connection closes. |} <code>REJECTED</code> and <code>ENDED</code> are the only refusal and kick signal, for receivers and transmitters alike. They carry an [[SimTX API/Data types#ErrorCode|ErrorCode]] in <code>code</code> and a human-readable <code>reason</code>. Show the reason to the user; branch on the code. A session can also end without a SessionStatus, when the connection itself fails or the account's lease runs out. Treat a closed connection as the end of the session.
Summary:
Please note that all contributions to SimTX Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
SimTX Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)