|
|
Paraslash Audio Streaming |
| About News Download Documentation Development |
Data Fields | |
| unsigned int | vss_status_flags |
| unsigned int | new_vss_status_flags |
| long unsigned | chunks_sent |
| long unsigned | repos_request |
| long unsigned | current_chunk |
| long | offset |
| struct timeval | stream_start |
| unsigned int | events |
| unsigned int | num_played |
| unsigned int | num_commands |
| unsigned int | num_connects |
| unsigned int | active_connections |
| char | afs_mode_string [MAXLINE] |
| struct sender_command_data | sender_cmd_data |
| int | loglevel |
| struct audio_file_data | afd |
Miscellaneous data for communication between server and command handlers.
There is only one instance of this structure and this instance lives in a shared memory area so that changes made by the command handlers are visible by the server process and vice versa. Access to this area is serialized by the mmd_mutex.
There are two reasons for a variable to be included here: (a) at least one command handler changes its value, or (b) updates by the server must propagate to the stat command handlers.
| unsigned int vss_status_flags |
The "old" status flags – commands may only read them.
| unsigned int new_vss_status_flags |
The new status flags – commands may set them.
Referenced by vss_paused(), vss_playing(), and vss_stopped().
| long unsigned chunks_sent |
The number of data chunks sent so far.
| long unsigned repos_request |
Set by the jmp/ff commands to the new position in chunks.
| long unsigned current_chunk |
The number of the chunk currently being sent.
| long offset |
The milliseconds that have been skipped of the current audio file.
| struct timeval stream_start |
The time para_server started to stream.
| unsigned int events |
The event counter.
Commands may increase this to force a status update to be sent to all connected stat clients.
| unsigned int num_played |
The number of audio files already sent.
| unsigned int num_commands |
The number of executed commands.
| unsigned int num_connects |
The number of connections para_server received so far.
| unsigned int active_connections |
The number of connections currently active.
| char afs_mode_string[MAXLINE] |
This gets updated by afs and contains its current mode.
| struct sender_command_data sender_cmd_data |
Used by the sender command.
| int loglevel |
Set by the ll command.
| struct audio_file_data afd |
Describes the current audio file.