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

📄 osip_body.h

📁 SIP协议栈实现
💻 H
字号:
/*  The oSIP library implements the Session Initiation Protocol (SIP -rfc2543-)  Copyright (C) 2001  Aymeric MOIZARD jack@atosc.org    This library is free software; you can redistribute it and/or  modify it under the terms of the GNU Lesser General Public  License as published by the Free Software Foundation; either  version 2.1 of the License, or (at your option) any later version.    This library 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  Lesser General Public License for more details.    You should have received a copy of the GNU Lesser General Public  License along with this library; if not, write to the Free Software  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA*/#ifndef _OSIP_BODY_H_#define _OSIP_BODY_H_#include <osipparser2/headers/osip_content_type.h>/** * @file osip_body.h * @brief oSIP SIP Message Body Routines * *//** * @defgroup oSIP_BODY oSIP body API * @ingroup oSIP * @{ *//** * Structure for Body * @defvar osip_body_t */  typedef struct osip_body osip_body_t;  struct osip_body  {    char *body;    osip_list_t *headers;    osip_content_type_t *content_type;  };#ifdef __cplusplusextern "C"{#endif/** * Allocate a osip_body_t element. * @param body The element to work on. */  int osip_body_init (osip_body_t ** body);/** * Free a osip_body_t element. * @param body The element to work on. */  void osip_body_free (osip_body_t * body);/** * Parse a osip_body_t element. * @param body The element to work on. * @param buf The buffer to parse. */  int osip_body_parse (osip_body_t * body, const char *buf);/** * Clone a osip_body_t element. * @param body The element to clone. * @param dest The cloned element. */  int osip_body_clone (const osip_body_t * body, osip_body_t ** dest);/** * Parse a osip_body_t element. (for mime message format) (NOT TESTED, use with care) * @param body The element to work on. * @param buf The buffer to parse. */  int osip_body_parse_mime (osip_body_t * body, const char *buf);/** * Get a string representation of a osip_body_t element. * @param body The element to work on. * @param dest The resulting buffer. */  int osip_body_to_str (const osip_body_t * body, char **dest);#ifdef __cplusplus}#endif/** @} */#endif

⌨️ 快捷键说明

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