parse_args.h

Go to the documentation of this file.
00001 
00033 #ifndef _PARSE_ARGS_H_
00034 #define _PARSE_ARGS_H_
00035 
00036 #ifdef _MSC_VER
00037 #include <winsock2.h>
00038 #include <ws2tcpip.h>
00039 #else
00040 #include <arpa/inet.h>
00041 #endif
00042 
00043 #include "flute_defines.h"
00044 #include "../alclib/defines.h"
00045 #include "../alclib/mad.h"
00046 #include "../sdplib/sdp_message.h"
00047 #include "../sdplib/sdplib.h"
00048 
00049 #ifdef __cplusplus
00050 extern "C" {
00051 #endif
00052 
00058 typedef struct arguments {
00059 
00060   struct alc_arguments alc_a;                                   
00064   char repair[MAX_PATH_LENGTH];                
00065   char file_path[MAX_PATH_LENGTH];                              
00067   int log_fd;                                                                   
00068   BOOL rx_automatic;                                                    
00069   BOOL open_file;                                                               
00070   char sdp_file[MAX_PATH_LENGTH];                               
00071   BOOL rx_object;                                                               
00072   BOOL name_incomplete_objects;                                 
00073   unsigned short complete_fdt;                                  
00074   BOOL file_table_output;                                               
00076   unsigned long long toi;                       
00078   char fdt_file[MAX_PATH_LENGTH];               
00079   BOOL cont;                                    
00080   int send_session_close_packets;               
00082   /* Repair Sender */
00083   char requested_blocks_file[MAX_PATH_LENGTH];  
00084   char flute_conf_file[MAX_PATH_LENGTH];            
00086   sdp_message_t *sdp;                                                   
00087   sf_t *src_filt;                                                               
00089 } arguments_t;
00090 
00102 int parse_args(int argc, char **argv, arguments_t *a);
00103 
00116 int parse_sdp_file(arguments_t *a, char addrs[MAX_CHANNELS_IN_SESSION][INET6_ADDRSTRLEN],
00117                    char ports[MAX_CHANNELS_IN_SESSION][MAX_PORT_LENGTH], char *sdp_buf);
00118 
00126 void free_args(arguments_t *a);
00127 
00128 #ifdef __cplusplus
00129 }; //extern "C"
00130 #endif
00131 
00132 #endif

Generated on Fri Mar 9 19:59:54 2007 for MAD-FCL by  doxygen 1.5.0