paraslash Paraslash Audio Streaming
About   News   Download   Documentation   Development

Macros | Functions | Variables
recv.c File Reference

the stand-alone audio stream receiver More...

#include <regex.h>
#include <sys/types.h>
#include <lopsub.h>
#include "recv_cmd.lsg.h"
#include "recv.lsg.h"
#include "para.h"
#include "list.h"
#include "sched.h"
#include "buffer_tree.h"
#include "recv.h"
#include "fd.h"
#include "string.h"
#include "error.h"
#include "stdout.h"
#include "version.h"

Macros

#define CMD_PTR   (lls_cmd(0, recv_suite))
 
#define OPT_RESULT(_name, _lpr)    (lls_opt_result(LSG_RECV_PARA_RECV_OPT_ ## _name, lpr))
 
#define OPT_GIVEN(_name, _lpr)   (lls_opt_given(OPT_RESULT(_name, _lpr)))
 
#define OPT_UINT32_VAL(_name, _lpr)   (lls_uint32_val(0, OPT_RESULT(_name, _lpr)))
 
#define OPT_STRING_VAL(_name, _lpr)   (lls_string_val(0, OPT_RESULT(_name, _lpr)))
 

Functions

int main (int argc, char *argv[])
 The main function of para_recv. More...
 

Variables

 DEFINE_PARA_ERRLIST
 Array of error strings. More...
 
__printf_2_3 void(* para_log )(int, const char *,...) = stderr_log
 The log function of para_gui, always set to curses_log(). More...
 

Detailed Description

the stand-alone audio stream receiver

Macro Definition Documentation

◆ CMD_PTR

#define CMD_PTR   (lls_cmd(0, recv_suite))

◆ OPT_RESULT

#define OPT_RESULT (   _name,
  _lpr 
)     (lls_opt_result(LSG_RECV_PARA_RECV_OPT_ ## _name, lpr))

◆ OPT_GIVEN

#define OPT_GIVEN (   _name,
  _lpr 
)    (lls_opt_given(OPT_RESULT(_name, _lpr)))

◆ OPT_UINT32_VAL

#define OPT_UINT32_VAL (   _name,
  _lpr 
)    (lls_uint32_val(0, OPT_RESULT(_name, _lpr)))

◆ OPT_STRING_VAL

#define OPT_STRING_VAL (   _name,
  _lpr 
)    (lls_string_val(0, OPT_RESULT(_name, _lpr)))

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

The main function of para_recv.

Parameters
argcnumber of arguments
argvvector of arguments

para_recv uses the specified receiver to receive an audio stream sent by para_server. The received data is written to stdout.

Returns
EXIT_SUCCESS on success, EXIT_FAILURE on errors.

Variable Documentation

◆ DEFINE_PARA_ERRLIST

DEFINE_PARA_ERRLIST

Array of error strings.

◆ para_log

__printf_2_3 void(* para_log) (int, const char *,...) = stderr_log

The log function of para_gui, always set to curses_log().