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

The Communications Library
[Application-Specific Components]

Library that provides a mechanism for communicating between the client and alsad. More...


Files

file  alsad_net_lib.c
 This is the implementation of the Communications Library.

file  alsad_net_lib.h
 This is the header for the Communications Library.


Data Structures

struct  alsad_control
struct  alsad_hw_params
struct  alsad_sw_params
struct  alsad_audio_hdr
struct  alsad_stream_props
struct  alsad_connect_addr
struct  alsad_data_pipe
struct  alsad_net_structs

Defines

#define ALSAD_MAX_DEV_LENGTH   40
#define ALSAD_MAX_TEXT_DESC   65
#define ALSAD_MAX_HOST_LEN   257

Typedefs

typedef alsad_control alsad_control_t
typedef alsad_hw_params alsad_hw_params_t
typedef alsad_sw_params alsad_sw_params_t
typedef alsad_audio_hdr alsad_audio_hdr_t
typedef alsad_stream_props alsad_stream_props_t
typedef alsad_connect_addr alsad_connect_addr_t
typedef alsad_data_pipe alsad_data_pipe_t
typedef alsad_net_structs alsad_net_structs_t

Functions

void alsad_initialize_hw_params (alsad_hw_params_t *init_hw_params)
void alsad_initialize_sw_params (alsad_sw_params_t *init_sw_params)
void alsad_initialize_connect_addr (alsad_connect_addr_t *init_connect_addr)
void alsad_initialize_stream_props (alsad_stream_props_t *init_stream_props)
void alsad_initialize_data_pipe (alsad_data_pipe_t *init_data_pipe)
int alsad_send_hw_params (int sock, alsad_hw_params_t *hw_params)
int alsad_recv_hw_params (int sock, alsad_hw_params_t *hw_params)
int alsad_send_hw_params_w_ctrl (int sock, alsad_hw_params_t *hw_params, alsad_control_t *send_control)
int alsad_send_sw_params (int sock, alsad_sw_params_t *sw_params)
int alsad_recv_sw_params (int sock, alsad_sw_params_t *sw_params)
int alsad_send_sw_params_w_ctrl (int sock, alsad_sw_params_t *sw_params, alsad_control_t *send_control)
int alsad_send_audio_hdr (int sock, alsad_audio_hdr_t *audio_hdr, char *audiobuf)
int alsad_recv_audio_hdr (int sock, alsad_audio_hdr_t *audio_hdr)
int alsad_send_stream_props (int sock, alsad_stream_props_t *stream_props)
int alsad_recv_stream_props (int sock, alsad_stream_props_t *stream_props)
int alsad_send_conn_addr (int sock, alsad_connect_addr_t *conn_addr)
int alsad_recv_conn_addr (int sock, alsad_connect_addr_t *conn_addr)
int alsad_send_conn_addr_w_ctrl (int sock, alsad_connect_addr_t *conn_addr, alsad_control_t *send_control)
int alsad_send_control (int sock, alsad_control_t *control)
int alsad_recv_control (int sock, alsad_control_t *control)
int alsad_send_data_pipe (int sock, alsad_data_pipe_t *data_pipe)
int alsad_recv_data_pipe (int sock, alsad_data_pipe_t *data_pipe)
int alsad_send_data_pipe_w_ctrl (int sock, alsad_data_pipe_t *data_pipe, alsad_control_t *send_control)
int alsad_request_structs (int sock, alsad_net_structs_t *net_structs, alsad_control_t *control)
int alsad_reply_structs (int sock, alsad_net_structs_t *net_structs)
void alsad_free_net_structs (alsad_net_structs_t *free_structs)

Detailed Description

Library that provides a mechanism for communicating between the client and alsad.


Define Documentation

#define ALSAD_MAX_DEV_LENGTH   40
 

#define ALSAD_MAX_HOST_LEN   257
 

#define ALSAD_MAX_TEXT_DESC   65
 


Typedef Documentation

typedef struct alsad_audio_hdr alsad_audio_hdr_t
 

typedef struct alsad_connect_addr alsad_connect_addr_t
 

typedef struct alsad_control alsad_control_t
 

typedef struct alsad_data_pipe alsad_data_pipe_t
 

typedef struct alsad_hw_params alsad_hw_params_t
 

typedef struct alsad_net_structs alsad_net_structs_t
 

typedef struct alsad_stream_props alsad_stream_props_t
 

typedef struct alsad_sw_params alsad_sw_params_t
 


Function Documentation

void alsad_free_net_structs alsad_net_structs_t free_structs  ) 
 

void alsad_initialize_connect_addr alsad_connect_addr_t init_connect_addr  ) 
 

void alsad_initialize_data_pipe alsad_data_pipe_t rcvd_data_pipe  ) 
 

void alsad_initialize_hw_params alsad_hw_params_t init_hw_params  ) 
 

void alsad_initialize_stream_props alsad_stream_props_t init_audio_chan  ) 
 

void alsad_initialize_sw_params alsad_sw_params_t init_sw_params  ) 
 

int alsad_recv_audio_hdr int  sock,
alsad_audio_hdr_t audio_hdr
 

int alsad_recv_conn_addr int  sock,
alsad_connect_addr_t conn_addr
 

int alsad_recv_control int  sock,
alsad_control_t control
 

int alsad_recv_data_pipe int  sock,
alsad_data_pipe_t data_pipe
 

TODO Send and Recv data pipe should send all of the data not just the identifier.

int alsad_recv_hw_params int  sock,
alsad_hw_params_t hd_params
 

int alsad_recv_stream_props int  sock,
alsad_stream_props_t stream_prop
 

int alsad_recv_sw_params int  sock,
alsad_sw_params_t sw_params
 

int alsad_reply_structs int  sock,
alsad_net_structs_t net_structs
 

int alsad_request_structs int  sock,
alsad_net_structs_t net_structs,
alsad_control_t control
 

int alsad_send_audio_hdr int  sock,
alsad_audio_hdr_t audio_hdr,
char *  audiobuf
 

int alsad_send_conn_addr int  sock,
alsad_connect_addr_t conn_addr
 

int alsad_send_conn_addr_w_ctrl int  sock,
alsad_connect_addr_t conn_addr,
alsad_control_t send_control
 

int alsad_send_control int  sock,
alsad_control_t control
 

int alsad_send_data_pipe int  sock,
alsad_data_pipe_t data_pipe
 

Todo:
I should send/recv the hw_params and the sw_params over the network

int alsad_send_data_pipe_w_ctrl int  sock,
alsad_data_pipe_t data_pipe,
alsad_control_t send_control
 

int alsad_send_hw_params int  sock,
alsad_hw_params_t hd_params
 

int alsad_send_hw_params_w_ctrl int  sock,
alsad_hw_params_t hd_params,
alsad_control_t send_control
 

int alsad_send_stream_props int  sock,
alsad_stream_props_t stream_prop
 

int alsad_send_sw_params int  sock,
alsad_sw_params_t sw_params
 

int alsad_send_sw_params_w_ctrl int  sock,
alsad_sw_params_t sw_params,
alsad_control_t send_control
 


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