Paraslash Audio Streaming | |
About News Download Documentation Development |
Miscellaneous data for communication between server and command handlers. More...
#include <server.h>
Data Fields | |
unsigned int | vss_status_flags |
The "old" status flags – commands may only read them. More... | |
unsigned int | new_vss_status_flags |
The new status flags – commands may set them. More... | |
long unsigned | chunks_sent |
The number of data chunks sent so far. More... | |
long unsigned | repos_request |
Set by the jmp/ff commands to the new position in chunks. More... | |
long unsigned | current_chunk |
The number of the chunk currently being sent. More... | |
long | offset |
The milliseconds that have been skipped of the current audio file. More... | |
struct timeval | stream_start |
The time para_server started to stream. More... | |
unsigned int | events |
The event counter. More... | |
unsigned int | num_played |
The number of audio files already sent. More... | |
unsigned int | num_commands |
The number of executed commands. More... | |
unsigned int | num_connects |
The number of connections para_server received so far. More... | |
unsigned int | active_connections |
The number of connections currently active. More... | |
char | afs_mode_string [MAXLINE] |
This gets updated by afs and contains its current mode. More... | |
struct sender_command_data | sender_cmd_data |
Used by the sender command. More... | |
int | loglevel |
Set by the ll command. More... | |
struct audio_file_data | afd |
Describes the current audio file. More... | |
Miscellaneous data for communication between server and command handlers.
There's only one instance of this structure which lives in a shared memory area. Command handlers communicate with the server process through this area. Changes made by the command handlers stay after the command handler exits. Conversely, changes made by the server process propagate to the command handlers. Access to this area is serialized via mmd_lock() and mmd_unlock().
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_next(), vss_paused(), vss_playing(), vss_repos(), 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.
Referenced by vss_chunk_time().