Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

main.c File Reference

This is the main file for alsad. More...

#include <stdlib.h>
#include <stdio.h>
#include <sys/file.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/time.h>
#include <string.h>
#include <ctype.h>
#include <netdb.h>
#include <pthread.h>
#include <linux/un.h>
#include <linux/stddef.h>
#include <getopt.h>
#include "auth_lib.h"
#include "alsad_defs.h"
#include "alsad_net_lib.h"
#include "socket_lib.h"
#include "log_lib.h"
#include "alsad_stream_list.h"
#include "alsad_data_pipe_list.h"
#include "alsad_shared_lib.h"
#include "circ_buff.h"
#include "config_file.h"

Data Structures

struct  alsad_handle_client_args
struct  alsad_drain_buff_args

Defines

#define ALSAD_CONFIG_FILE   "/etc/alsad/alsad.conf"
#define ALSAD_LOG_FILE   "/etc/alsad/alsad.log"
#define ALSAD_MAX_NET_QUEUE   30
#define ALSAD_SELECT_TIMEOUT   4
#define ALSAD_THREAD_CHANNEL_WAIT   4
#define ALSAD_THREAD_SHUTDOWN_TIME   6
#define ALSAD_BUFF_SIZE_SCALE   128
#define ALSAD_DEF_CIRC_TIMEOUT   1
#define ALSAD_MAX_COMPRESS   10L
#define ALSAD_DEFAULT_AUDIO_BUF_SIZE   1024
#define ALSAD_PROC_NAME   "alsad"
#define LOGMESSAGE(string, location)

Typedefs

typedef alsad_handle_client_args alsad_handle_client_args_t
typedef alsad_drain_buff_args alsad_drain_buff_args_t

Functions

void * alsad_handle_client (void *arguments)
void * alsad_drain_buffer (void *arguments)
int alsad_handle_add_stream (int sock, alsad_stream_list_t *head_of_list, alsad_config_keys_t *load_keys, alsad_control_t *return_ctrl)
int alsad_handle_del_stream (int sock, alsad_stream_list_t *head_of_list, alsad_control_t *return_ctrl)
int alsad_handle_add_src (int *sock, alsad_stream_list_t *head_of_list, alsad_control_t *rcvd_control, alsad_config_keys_t *load_keys, alsad_control_t *return_ctrl)
int alsad_handle_del_src (int sock, alsad_stream_list_t *head_of_list, alsad_control_t *rcvd_control, alsad_control_t *return_ctrl)
int alsad_handle_add_sink (int *sock, alsad_stream_list_t *head_of_list, alsad_control_t *rcvd_control, alsad_config_keys_t *load_keys, alsad_control_t *return_ctrl)
int alsad_handle_del_sink (int sock, alsad_stream_list_t *head_of_list, alsad_control_t *rcvd_control, alsad_control_t *return_ctrl)
int alsad_handle_list_stream (int sock, alsad_stream_list_t *head_of_list, alsad_control_t *return_ctrl)
int alsad_handle_list_pipe (int sock, alsad_stream_list_t *head_of_list, alsad_control_t *rcvd_control, alsad_control_t *return_ctrl)
int alsad_is_server (alsad_connect_addr_t *connection)
int alsad_data_pipe_compare (void *identifier, void *data_pipe)
int alsad_process_data_pipe (void *data_pipe, void *args)
int main (int argc, char **argv)

Variables

char buffer [50]
int server_port
int alsad_shutdown
char * config_file


Detailed Description

This is the main file for alsad.

Author:
Daniel R. Warren
Version:
1.0
Date:
November 2004

Generated on Thu Dec 16 23:07:31 2004 for alsad by doxygen 1.3.6