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

📄 group__osip__via.html

📁 关于OSIP协议栈开发的一个很有用的东东~~~
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>libosip: oSIP via header definition.</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.8 --><div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div><h1>oSIP via header definition.<br><small>[<a class="el" href="group__oSIP__HEADERS.html">oSIP headers definitions</a>]</small></h1><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Classes</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>struct &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structosip__via.html">osip_via</a></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>struct &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structosip__via.html">osip_via</a></td></tr><tr><td colspan=2><br><h2>Defines</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga17">osip_via_set_hidden</a>(header)&nbsp;&nbsp;&nbsp;osip_generic_param_add((header)-&gt;via_params,osip_strdup("hidden"),NULL)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga18">osip_via_set_ttl</a>(header, value)&nbsp;&nbsp;&nbsp;osip_generic_param_add((header)-&gt;via_params,osip_strdup("ttl"),value)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga19">osip_via_set_maddr</a>(header, value)&nbsp;&nbsp;&nbsp;osip_generic_param_add((header)-&gt;via_params,osip_strdup("maddr"),value)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga20">osip_via_set_received</a>(header, value)&nbsp;&nbsp;&nbsp;osip_generic_param_add((header)-&gt;via_params,osip_strdup("received"),value)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga21">osip_via_set_branch</a>(header, value)&nbsp;&nbsp;&nbsp;osip_generic_param_add((header)-&gt;via_params,osip_strdup("branch"),value)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga22">osip_via_param_add</a>(header, name, value)&nbsp;&nbsp;&nbsp;osip_generic_param_add((header)-&gt;via_params,name,value)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga23">osip_via_param_get_byname</a>(header, name, dest)&nbsp;&nbsp;&nbsp;osip_generic_param_get_byname((header)-&gt;via_params,name,dest)</td></tr><tr><td colspan=2><br><h2>Typedefs</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>typedef <a class="el" href="structosip__via.html">osip_via</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga0">osip_via_t</a></td></tr><tr><td colspan=2><br><h2>Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga1">osip_via_init</a> (<a class="el" href="structosip__via.html">osip_via_t</a> **header)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga2">osip_via_free</a> (<a class="el" href="structosip__via.html">osip_via_t</a> *header)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga3">osip_via_parse</a> (<a class="el" href="structosip__via.html">osip_via_t</a> *header, const char *hvalue)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga4">osip_via_to_str</a> (const <a class="el" href="structosip__via.html">osip_via_t</a> *header, char **dest)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga5">osip_via_clone</a> (const <a class="el" href="structosip__via.html">osip_via_t</a> *header, <a class="el" href="structosip__via.html">osip_via_t</a> **dest)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga6">via_set_version</a> (<a class="el" href="structosip__via.html">osip_via_t</a> *header, char *value)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>char *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga7">via_get_version</a> (<a class="el" href="structosip__via.html">osip_via_t</a> *header)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga8">via_set_protocol</a> (<a class="el" href="structosip__via.html">osip_via_t</a> *header, char *value)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>char *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga9">via_get_protocol</a> (<a class="el" href="structosip__via.html">osip_via_t</a> *header)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga10">via_set_host</a> (<a class="el" href="structosip__via.html">osip_via_t</a> *header, char *value)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>char *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga11">via_get_host</a> (<a class="el" href="structosip__via.html">osip_via_t</a> *header)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga12">via_set_port</a> (<a class="el" href="structosip__via.html">osip_via_t</a> *header, char *value)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>char *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga13">via_get_port</a> (<a class="el" href="structosip__via.html">osip_via_t</a> *header)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga14">via_set_comment</a> (<a class="el" href="structosip__via.html">osip_via_t</a> *header, char *value)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>char *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga15">via_get_comment</a> (<a class="el" href="structosip__via.html">osip_via_t</a> *header)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__VIA.html#ga16">osip_via_match</a> (<a class="el" href="structosip__via.html">osip_via_t</a> *via1, <a class="el" href="structosip__via.html">osip_via_t</a> *via2)</td></tr></table><hr><h2>Define Documentation</h2><a class="anchor" name="ga22" doxytag="osip_via.h::osip_via_param_add" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> #define osip_via_param_add          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">header,         <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>name,         <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>value&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;osip_generic_param_add((header)-&gt;via_params,name,value)</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Allocate and add a generic parameter element in a list. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>header</em>&nbsp;</td><td>The element to work on. </td></tr>    <tr><td></td><td valign=top><em>name</em>&nbsp;</td><td>The token name. </td></tr>    <tr><td></td><td valign=top><em>value</em>&nbsp;</td><td>The token value. </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="ga23" doxytag="osip_via.h::osip_via_param_get_byname" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> #define osip_via_param_get_byname          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">header,         <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>name,         <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>dest&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;osip_generic_param_get_byname((header)-&gt;via_params,name,dest)</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Find a header parameter in a Via element. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>header</em>&nbsp;</td><td>The element to work on. </td></tr>    <tr><td></td><td valign=top><em>name</em>&nbsp;</td><td>The token name to search. </td></tr>    <tr><td></td><td valign=top><em>dest</em>&nbsp;</td><td>A pointer on the element found. </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="ga21" doxytag="osip_via.h::osip_via_set_branch" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> #define osip_via_set_branch          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">header,         <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>value&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;osip_generic_param_add((header)-&gt;via_params,osip_strdup("branch"),value)</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Allocate and add a branch parameter element in a list. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>header</em>&nbsp;</td><td>The element to work on. </td></tr>    <tr><td></td><td valign=top><em>value</em>&nbsp;</td><td>The token value. </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="ga17" doxytag="osip_via.h::osip_via_set_hidden" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> #define osip_via_set_hidden          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">header&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;osip_generic_param_add((header)-&gt;via_params,osip_strdup("hidden"),NULL)</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Allocate and add a hidden parameter element in a list. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>header</em>&nbsp;</td><td>The element to work on. </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="ga19" doxytag="osip_via.h::osip_via_set_maddr" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> #define osip_via_set_maddr          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">header,         <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>value&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;osip_generic_param_add((header)-&gt;via_params,osip_strdup("maddr"),value)</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Allocate and add a maddr parameter element in a list. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>header</em>&nbsp;</td><td>The element to work on. </td></tr>    <tr><td></td><td valign=top><em>value</em>&nbsp;</td><td>The token value. </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="ga20" doxytag="osip_via.h::osip_via_set_received" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> #define osip_via_set_received          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">header,         <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>value&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;osip_generic_param_add((header)-&gt;via_params,osip_strdup("received"),value)</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Allocate and add a received parameter element in a list. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>header</em>&nbsp;</td><td>The element to work on. </td></tr>    <tr><td></td><td valign=top><em>value</em>&nbsp;</td><td>The token value. </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="ga18" doxytag="osip_via.h::osip_via_set_ttl" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> #define osip_via_set_ttl          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">header,         <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>value&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;osip_generic_param_add((header)-&gt;via_params,osip_strdup("ttl"),value)</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Allocate and add a ttl parameter element in a list. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>header</em>&nbsp;</td><td>The element to work on. </td></tr>    <tr><td></td><td valign=top><em>value</em>&nbsp;</td><td>The token value. </td></tr>

⌨️ 快捷键说明

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