paraslash Paraslash Audio Streaming
About   News   Download   Documentation   Development

Data Fields
misc_meta_data Struct Reference

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...
 

Detailed Description

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.

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_next(), vss_paused(), vss_playing(), vss_repos(), 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.

Referenced by vss_chunk_time().


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