⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 parse_args.h

📁 这个程序实现了FLUTE协议
💻 H
字号:
/* $Author: peltotal $ $Date: 2006/02/17 08:07:17 $ $Revision: 1.2 $ *//* *   MAD-FLUTELIB: Implementation of FLUTE protocol. *   Copyright (c) 2003-2006 TUT - Tampere University of Technology *   main authors/contacts: jani.peltotalo@tut.fi and sami.peltotalo@tut.fi * *   This program is free software; you can redistribute it and/or modify *   it under the terms of the GNU General Public License as published by *   the Free Software Foundation; either version 2 of the License, or *   (at your option) any later version. * *   This program is distributed in the hope that it will be useful, *   but WITHOUT ANY WARRANTY; without even the implied warranty of *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *   GNU General Public License for more details. * *   You should have received a copy of the GNU General Public License *   along with this program; if not, write to the Free Software *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */#ifndef _PARSE_ARGS_H_#define _PARSE_ARGS_H_#include "flute_inc.h"/**** Typedefs ****/typedef struct arguments {  struct alc_arguments alc_a;    char file_path[MAX_LENGTH];                     /* File to send/recv */  int log_fd;                                      /* Log file descriptor */  bool rx_automatic;                              /* Download files defined in fdt automatically */  bool open_file;                                  /* open received file automatically */  char sdp_file[MAX_LENGTH];              /* SDP file (SDP based recv) */  bool rx_object;  bool name_incomplete_objects;    bool complete_fdt;  #ifdef WIN32  ULONGLONG toi;                          /* Transport Object Identifier */#else  unsigned long long toi;                 /* Transport Object Identifier */#endif    char fdt_file[MAX_LENGTH];              /* FDT file (FDT based send) */  bool cont;                              /* Continuous transmission */  sdp_t *sdp;  sf_t *src_filt;  } arguments_t;/**** Functions ****/int validateargs(int argc, char **argv, arguments_t *a);int parse_sdp_file(arguments_t *a, char addrs[MAX_CHANNELS_IN_SESSION][MAX_LENGTH],                   char ports[MAX_CHANNELS_IN_SESSION][MAX_LENGTH], char *sdp_buf);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -