paraslash Paraslash Audio Streaming
About   News   Download   Documentation   Development

Data Fields
misc_meta_data Struct Reference

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
 

Detailed Description

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.

Field Documentation

◆ vss_status_flags

unsigned int vss_status_flags

The "old" status flags – commands may only read them.

◆ new_vss_status_flags

unsigned int new_vss_status_flags

The new status flags – commands may set them.

Referenced by vss_paused(), vss_playing(), and vss_stopped().

◆ chunks_sent

long unsigned chunks_sent

The number of data chunks sent so far.

◆ repos_request

long unsigned repos_request

Set by the jmp/ff commands to the new position in chunks.

◆ current_chunk

long unsigned current_chunk

The number of the chunk currently being sent.

◆ offset

long offset

The milliseconds that have been skipped of the current audio file.

◆ stream_start

struct timeval stream_start

The time para_server started to stream.

◆ events

unsigned int events

The event counter.

Commands may increase this to force a status update to be sent to all connected stat clients.

◆ num_played

unsigned int num_played

The number of audio files already sent.

◆ num_commands

unsigned int num_commands

The number of executed commands.

◆ num_connects

unsigned int num_connects

The number of connections para_server received so far.

◆ active_connections

unsigned int active_connections

The number of connections currently active.

◆ afs_mode_string

char afs_mode_string[MAXLINE]

This gets updated by afs and contains its current mode.

◆ sender_cmd_data

struct sender_command_data sender_cmd_data

Used by the sender command.

◆ loglevel

int loglevel

Set by the ll command.

◆ afd

struct audio_file_data afd

Describes the current audio file.


The documentation for this struct was generated from the following file: