structframeData.html 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.17"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>MQTT C Client Libraries Internals: frameData Struct Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectlogo"><img alt="Logo" src="pahologo.png"/></td>
  24. <td id="projectalign" style="padding-left: 0.5em;">
  25. <div id="projectname">MQTT C Client Libraries Internals
  26. </div>
  27. </td>
  28. </tr>
  29. </tbody>
  30. </table>
  31. </div>
  32. <!-- end header part -->
  33. <!-- Generated by Doxygen 1.8.17 -->
  34. <script type="text/javascript">
  35. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. /* @license-end */
  38. </script>
  39. <script type="text/javascript" src="menudata.js"></script>
  40. <script type="text/javascript" src="menu.js"></script>
  41. <script type="text/javascript">
  42. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  43. $(function() {
  44. initMenu('',true,false,'search.php','Search');
  45. $(document).ready(function() { init_search(); });
  46. });
  47. /* @license-end */</script>
  48. <div id="main-nav"></div>
  49. <!-- window showing the filter options -->
  50. <div id="MSearchSelectWindow"
  51. onmouseover="return searchBox.OnSearchSelectShow()"
  52. onmouseout="return searchBox.OnSearchSelectHide()"
  53. onkeydown="return searchBox.OnSearchSelectKey(event)">
  54. </div>
  55. <!-- iframe showing the search results (closed by default) -->
  56. <div id="MSearchResultsWindow">
  57. <iframe src="javascript:void(0)" frameborder="0"
  58. name="MSearchResults" id="MSearchResults">
  59. </iframe>
  60. </div>
  61. </div><!-- top -->
  62. <div class="header">
  63. <div class="summary">
  64. <a href="#pub-attribs">Data Fields</a> </div>
  65. <div class="headertitle">
  66. <div class="title">frameData Struct Reference</div> </div>
  67. </div><!--header-->
  68. <div class="contents">
  69. <p>builds a websocket frame for data transmission
  70. <a href="structframeData.html#details">More...</a></p>
  71. <table class="memberdecls">
  72. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
  73. Data Fields</h2></td></tr>
  74. <tr class="memitem:a205f6b44101a1159ccb0d53510864bab"><td class="memItemLeft" align="right" valign="top"><a id="a205f6b44101a1159ccb0d53510864bab"></a>
  75. char *&#160;</td><td class="memItemRight" valign="bottom"><b>wsbuf0</b></td></tr>
  76. <tr class="separator:a205f6b44101a1159ccb0d53510864bab"><td class="memSeparator" colspan="2">&#160;</td></tr>
  77. <tr class="memitem:a0cc8af04cd1e822280334600f95d80de"><td class="memItemLeft" align="right" valign="top"><a id="a0cc8af04cd1e822280334600f95d80de"></a>
  78. size_t&#160;</td><td class="memItemRight" valign="bottom"><b>wsbuf0len</b></td></tr>
  79. <tr class="separator:a0cc8af04cd1e822280334600f95d80de"><td class="memSeparator" colspan="2">&#160;</td></tr>
  80. </table>
  81. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  82. <div class="textblock"><p>builds a websocket frame for data transmission </p>
  83. <p>write a websocket header and will mask the payload in all the passed in buffers</p>
  84. <dl class="params"><dt>Parameters</dt><dd>
  85. <table class="params">
  86. <tr><td class="paramdir">[in,out]</td><td class="paramname">net</td><td>network connection </td></tr>
  87. <tr><td class="paramdir">[in]</td><td class="paramname">opcode</td><td>websocket opcode for the packet </td></tr>
  88. <tr><td class="paramdir">[in]</td><td class="paramname">mask_data</td><td>whether to mask the data </td></tr>
  89. <tr><td class="paramdir">[in,out]</td><td class="paramname">buf0</td><td>first buffer, will write before this </td></tr>
  90. <tr><td class="paramdir">[in]</td><td class="paramname">buf0len</td><td>size of first buffer </td></tr>
  91. <tr><td class="paramdir">[in]</td><td class="paramname">count</td><td>number of payload buffers </td></tr>
  92. <tr><td class="paramdir">[in,out]</td><td class="paramname">buffers</td><td>array of payload buffers </td></tr>
  93. <tr><td class="paramdir">[in]</td><td class="paramname">buflens</td><td>array of payload buffer sizes </td></tr>
  94. <tr><td class="paramdir">[in]</td><td class="paramname">freeData</td><td>array indicating to free payload buffers</td></tr>
  95. </table>
  96. </dd>
  97. </dl>
  98. <dl class="section return"><dt>Returns</dt><dd>amount of data to write to socket </dd></dl>
  99. </div><hr/>The documentation for this struct was generated from the following file:<ul>
  100. <li>WebSocket.c</li>
  101. </ul>
  102. </div><!-- contents -->
  103. <!-- start footer part -->
  104. <hr class="footer"/><address class="footer"><small>
  105. Generated on Thu Sep 29 2022 11:34:46 for MQTT C Client Libraries Internals by &#160;<a href="http://www.doxygen.org/index.html">
  106. <img class="footer" src="doxygen.png" alt="doxygen"/>
  107. </a> 1.8.17
  108. </small></address>
  109. </body>
  110. </html>