Paraslash Audio Streaming | |
About News Download Documentation Development |
The client program used to connect to para_server. More...
#include <regex.h>
#include <signal.h>
#include <lopsub.h>
#include "client.lsg.h"
#include "para.h"
#include "list.h"
#include "sched.h"
#include "crypt.h"
#include "string.h"
#include "stdin.h"
#include "stdout.h"
#include "client.h"
#include "buffer_tree.h"
#include "error.h"
#include "version.h"
#include "interactive.h"
#include "server_cmd.lsg.h"
Macros | |
#define | DEFINE_BLOB_COMPLETER(cmd, blob_type) |
#define | LSG_SERVER_CMD_CMD(_name) |
Functions | |
int | main (int argc, char *argv[]) |
The client program to connect to para_server. More... | |
Variables | |
DEFINE_PARA_ERRLIST | |
Array of error strings. More... | |
__printf_2_3 void(* | para_log )(int, const char *,...) = stderr_log |
The client program used to connect to para_server.
#define DEFINE_BLOB_COMPLETER | ( | cmd, | |
blob_type | |||
) |
#define LSG_SERVER_CMD_CMD | ( | _name | ) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
The client program to connect to para_server.
argc | Usual argument count. |
argv | Usual argument vector. |
When called without a paraslash command, an interactive session is started. Otherwise, the client task and the supervisor task are started. The former communicates with para_server while the latter monitors whether the client task intends to read from stdin or write to stdout.
Once it has been determined whether the client command corresponds to a stdin command (addmood, addimg, ..), either the stdin task or the stdout task is set up to replace the supervisor task.
References client_parse_config(), crypt_init(), and sched::default_timeout.
DEFINE_PARA_ERRLIST |
Array of error strings.
__printf_2_3 void(* para_log) (int, const char *,...) = stderr_log |