openjpeg/doxygen/sock__manager_8c.html

404 lines
24 KiB
HTML
Raw Normal View History

2022-05-13 20:21:13 +02:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2015-07-10 18:06:19 +02:00
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
2022-05-13 20:21:13 +02:00
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
2015-07-10 18:06:19 +02:00
<title>OpenJPEG: sock_manager.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
2016-09-29 22:38:29 +02:00
<td id="projectalign" style="padding-left: 0.5em;">
2015-07-10 18:06:19 +02:00
<div id="projectname">OpenJPEG
2022-05-13 20:21:13 +02:00
&#160;<span id="projectnumber">2.5.0</span>
2015-07-10 18:06:19 +02:00
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
2022-05-13 20:21:13 +02:00
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
2015-07-10 18:06:19 +02:00
<div id="nav-path" class="navpath">
<ul>
2020-12-28 22:12:25 +01:00
<li class="navelem"><a class="el" href="dir_43e0a1f539e00dcfa1a6bc4d4fee4fc2.html">home</a></li><li class="navelem"><a class="el" href="dir_cb9b2b419d92b64f7cee83d8faf7a4ab.html">even</a></li><li class="navelem"><a class="el" href="dir_f75d9a0165d6564a1e04793ef847d41d.html">openjpeg</a></li><li class="navelem"><a class="el" href="dir_5f588d7ea139c1aae751d03c13a16064.html">openjpeg</a></li><li class="navelem"><a class="el" href="dir_378f732e812ef6cbaaae22e96a4fa79f.html">src</a></li><li class="navelem"><a class="el" href="dir_19dcb5713315405a27e1bde75a489a4c.html">lib</a></li><li class="navelem"><a class="el" href="dir_54d80c9412497e935deb5677b5fae801.html">openjpip</a></li> </ul>
2015-07-10 18:06:19 +02:00
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">sock_manager.c File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;sys/types.h&gt;</code><br />
<code>#include &lt;sys/socket.h&gt;</code><br />
<code>#include &lt;arpa/inet.h&gt;</code><br />
<code>#include &lt;unistd.h&gt;</code><br />
<code>#include &lt;stdio.h&gt;</code><br />
<code>#include &lt;string.h&gt;</code><br />
<code>#include &lt;stdlib.h&gt;</code><br />
<code>#include &quot;<a class="el" href="sock__manager_8h_source.html">sock_manager.h</a>&quot;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ac322e421aefb8ec9ccc10bef953e3d82"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sock__manager_8c.html#ac322e421aefb8ec9ccc10bef953e3d82">FCGI_stdout</a>&#160;&#160;&#160;stdout</td></tr>
<tr class="separator:ac322e421aefb8ec9ccc10bef953e3d82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77b5d5af2adb2cfa7ec785b592fc4074"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sock__manager_8c.html#a77b5d5af2adb2cfa7ec785b592fc4074">FCGI_stderr</a>&#160;&#160;&#160;stderr</td></tr>
<tr class="separator:a77b5d5af2adb2cfa7ec785b592fc4074"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31c99676da88bb0bcdb350710f00fa96"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sock__manager_8c.html#a31c99676da88bb0bcdb350710f00fa96">logstream</a>&#160;&#160;&#160;stderr</td></tr>
<tr class="separator:a31c99676da88bb0bcdb350710f00fa96"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a3c822e28c71631b25683cc57e8e4536b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sock__manager_8c.html#a3c822e28c71631b25683cc57e8e4536b">open_listeningsocket</a> (uint16_t port)</td></tr>
2022-05-13 20:21:13 +02:00
<tr class="memdesc:a3c822e28c71631b25683cc57e8e4536b"><td class="mdescLeft">&#160;</td><td class="mdescRight">open listening socket <a href="sock__manager_8c.html#a3c822e28c71631b25683cc57e8e4536b">More...</a><br /></td></tr>
2015-07-10 18:06:19 +02:00
<tr class="separator:a3c822e28c71631b25683cc57e8e4536b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a792461126a522ddf1db31e7353c055d8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sock__manager_8c.html#a792461126a522ddf1db31e7353c055d8">accept_socket</a> (<a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a> listening_socket)</td></tr>
2022-05-13 20:21:13 +02:00
<tr class="memdesc:a792461126a522ddf1db31e7353c055d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">accept a new connection to the listenning socket <a href="sock__manager_8c.html#a792461126a522ddf1db31e7353c055d8">More...</a><br /></td></tr>
2015-07-10 18:06:19 +02:00
<tr class="separator:a792461126a522ddf1db31e7353c055d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f5fb3b9c22e70ba6e82ca5560d98cc5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sock__manager_8c.html#a7f5fb3b9c22e70ba6e82ca5560d98cc5">send_stream</a> (<a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a> connected_socket, const void *stream, <a class="el" href="openjpeg_8h.html#aba7397be054e36dc0284a6589736135e">OPJ_SIZE_T</a> length)</td></tr>
2022-05-13 20:21:13 +02:00
<tr class="memdesc:a7f5fb3b9c22e70ba6e82ca5560d98cc5"><td class="mdescLeft">&#160;</td><td class="mdescRight">send data stream to client <a href="sock__manager_8c.html#a7f5fb3b9c22e70ba6e82ca5560d98cc5">More...</a><br /></td></tr>
2015-07-10 18:06:19 +02:00
<tr class="separator:a7f5fb3b9c22e70ba6e82ca5560d98cc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaeac7207dae4f03273607ba021530da6"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sock__manager_8c.html#aaeac7207dae4f03273607ba021530da6">receive_stream</a> (<a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a> connected_socket, <a class="el" href="openjpeg_8h.html#aba7397be054e36dc0284a6589736135e">OPJ_SIZE_T</a> length)</td></tr>
2022-05-13 20:21:13 +02:00
<tr class="memdesc:aaeac7207dae4f03273607ba021530da6"><td class="mdescLeft">&#160;</td><td class="mdescRight">receive data stream to client <a href="sock__manager_8c.html#aaeac7207dae4f03273607ba021530da6">More...</a><br /></td></tr>
2015-07-10 18:06:19 +02:00
<tr class="separator:aaeac7207dae4f03273607ba021530da6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a777bd29ec89be2ffb64e799ba58a3c55"><td class="memItemLeft" align="right" valign="top"><a class="el" href="openjpeg_8h.html#aba7397be054e36dc0284a6589736135e">OPJ_SIZE_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sock__manager_8c.html#a777bd29ec89be2ffb64e799ba58a3c55">receive_line</a> (<a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a> connected_socket, char *p)</td></tr>
2022-05-13 20:21:13 +02:00
<tr class="memdesc:a777bd29ec89be2ffb64e799ba58a3c55"><td class="mdescLeft">&#160;</td><td class="mdescRight">receive a string line (ending with '<br />
') from client <a href="sock__manager_8c.html#a777bd29ec89be2ffb64e799ba58a3c55">More...</a><br /></td></tr>
2015-07-10 18:06:19 +02:00
<tr class="separator:a777bd29ec89be2ffb64e799ba58a3c55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0257a018729bc73d0ccc970069a6352c"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sock__manager_8c.html#a0257a018729bc73d0ccc970069a6352c">receive_string</a> (<a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a> connected_socket)</td></tr>
2022-05-13 20:21:13 +02:00
<tr class="memdesc:a0257a018729bc73d0ccc970069a6352c"><td class="mdescLeft">&#160;</td><td class="mdescRight">receive a string line (ending with '<br />
') from client, return malloc string <a href="sock__manager_8c.html#a0257a018729bc73d0ccc970069a6352c">More...</a><br /></td></tr>
2015-07-10 18:06:19 +02:00
<tr class="separator:a0257a018729bc73d0ccc970069a6352c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af35003e15c5a408a198d4b3eb717bfdd"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sock__manager_8c.html#af35003e15c5a408a198d4b3eb717bfdd">close_socket</a> (<a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a> sock)</td></tr>
2022-05-13 20:21:13 +02:00
<tr class="memdesc:af35003e15c5a408a198d4b3eb717bfdd"><td class="mdescLeft">&#160;</td><td class="mdescRight">close socket <a href="sock__manager_8c.html#af35003e15c5a408a198d4b3eb717bfdd">More...</a><br /></td></tr>
2015-07-10 18:06:19 +02:00
<tr class="separator:af35003e15c5a408a198d4b3eb717bfdd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
2022-05-13 20:21:13 +02:00
<a id="a77b5d5af2adb2cfa7ec785b592fc4074"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a77b5d5af2adb2cfa7ec785b592fc4074">&#9670;&nbsp;</a></span>FCGI_stderr</h2>
2015-07-10 18:06:19 +02:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define FCGI_stderr&#160;&#160;&#160;stderr</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
2022-05-13 20:21:13 +02:00
<a id="ac322e421aefb8ec9ccc10bef953e3d82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac322e421aefb8ec9ccc10bef953e3d82">&#9670;&nbsp;</a></span>FCGI_stdout</h2>
2015-07-10 18:06:19 +02:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define FCGI_stdout&#160;&#160;&#160;stdout</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
2022-05-13 20:21:13 +02:00
<a id="a31c99676da88bb0bcdb350710f00fa96"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a31c99676da88bb0bcdb350710f00fa96">&#9670;&nbsp;</a></span>logstream</h2>
2015-07-10 18:06:19 +02:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define logstream&#160;&#160;&#160;stderr</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
2022-05-13 20:21:13 +02:00
<a id="a792461126a522ddf1db31e7353c055d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a792461126a522ddf1db31e7353c055d8">&#9670;&nbsp;</a></span>accept_socket()</h2>
2015-07-10 18:06:19 +02:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a> accept_socket </td>
<td>(</td>
<td class="paramtype"><a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a>&#160;</td>
<td class="paramname"><em>listening_socket</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>accept a new connection to the listenning socket </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">listening_socket</td><td>listenning socket </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>connected socket (-1 if error occurs) </dd></dl>
2022-05-13 20:21:13 +02:00
<p class="reference">Referenced by <a class="el" href="openjpip_8h.html#aeabf53674cdfc09c134a513fdd664b87">accept_connection()</a>, and <a class="el" href="auxtrans__manager_8c.html#a1b2a6aa920175602327fffe3680d20a4">aux_streaming()</a>.</p>
2015-07-10 18:06:19 +02:00
</div>
</div>
2022-05-13 20:21:13 +02:00
<a id="af35003e15c5a408a198d4b3eb717bfdd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af35003e15c5a408a198d4b3eb717bfdd">&#9670;&nbsp;</a></span>close_socket()</h2>
2015-07-10 18:06:19 +02:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int close_socket </td>
<td>(</td>
<td class="paramtype"><a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a>&#160;</td>
<td class="paramname"><em>sock</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>close socket </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">sock</td><td>closing socket </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 if succeed, -1 if failed </dd></dl>
2022-05-13 20:21:13 +02:00
<p class="reference">Referenced by <a class="el" href="auxtrans__manager_8c.html#a1b2a6aa920175602327fffe3680d20a4">aux_streaming()</a>, <a class="el" href="openjpip_8h.html#a43441d763d72585d9cc6c9b4b4ea422e">handle_clientreq()</a>, <a class="el" href="sock__manager_8h.html#a3c822e28c71631b25683cc57e8e4536b">open_listeningsocket()</a>, and <a class="el" href="openjpip_8h.html#a05f5e9a3abc177c5a18e0a97c77cc2e0">terminate_dec_server()</a>.</p>
2015-07-10 18:06:19 +02:00
</div>
</div>
2022-05-13 20:21:13 +02:00
<a id="a3c822e28c71631b25683cc57e8e4536b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c822e28c71631b25683cc57e8e4536b">&#9670;&nbsp;</a></span>open_listeningsocket()</h2>
2015-07-10 18:06:19 +02:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a> open_listeningsocket </td>
<td>(</td>
<td class="paramtype">uint16_t&#160;</td>
<td class="paramname"><em>port</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>open listening socket </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">port</td><td>opening port number </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>new socket </dd></dl>
2022-05-13 20:21:13 +02:00
<p class="reference">References <a class="el" href="sock__manager_8c.html#af35003e15c5a408a198d4b3eb717bfdd">close_socket()</a>, and <a class="el" href="sock__manager_8c.html#a77b5d5af2adb2cfa7ec785b592fc4074">FCGI_stderr</a>.</p>
2015-07-10 18:06:19 +02:00
2022-05-13 20:21:13 +02:00
<p class="reference">Referenced by <a class="el" href="auxtrans__manager_8h.html#a72e679f1d37899db4dec20b648c12ed9">init_aux_transport()</a>, and <a class="el" href="openjpip_8h.html#ae5c902178b9b0aa3b752de016a1074d7">init_dec_server()</a>.</p>
2015-07-10 18:06:19 +02:00
</div>
</div>
2022-05-13 20:21:13 +02:00
<a id="a777bd29ec89be2ffb64e799ba58a3c55"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a777bd29ec89be2ffb64e799ba58a3c55">&#9670;&nbsp;</a></span>receive_line()</h2>
2015-07-10 18:06:19 +02:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="openjpeg_8h.html#aba7397be054e36dc0284a6589736135e">OPJ_SIZE_T</a> receive_line </td>
<td>(</td>
<td class="paramtype"><a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a>&#160;</td>
<td class="paramname"><em>connected_socket</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char *&#160;</td>
<td class="paramname"><em>buf</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
2022-05-13 20:21:13 +02:00
<p>receive a string line (ending with '<br />
2015-07-10 18:06:19 +02:00
') from client </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">connected_socket</td><td>file descriptor of the connected socket </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">buf</td><td>string to be stored </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>red size </dd></dl>
2022-05-13 20:21:13 +02:00
<p class="reference">References <a class="el" href="sock__manager_8c.html#a77b5d5af2adb2cfa7ec785b592fc4074">FCGI_stderr</a>.</p>
2015-07-10 18:06:19 +02:00
2022-05-13 20:21:13 +02:00
<p class="reference">Referenced by <a class="el" href="dec__clientmsg__handler_8h.html#ac1721ebe188622dcbd80540e1bc4a237">handle_PNMreqMSG()</a>, <a class="el" href="imgsock__manager_8h.html#a88596b309ecbf50e65da25a0aea426e4">identify_clientmsg()</a>, <a class="el" href="imgsock__manager_8h.html#a79dc7124bbbf2db9f5b6149a6752be13">receive_JPIPstream()</a>, and <a class="el" href="sock__manager_8h.html#a0257a018729bc73d0ccc970069a6352c">receive_string()</a>.</p>
2015-07-10 18:06:19 +02:00
</div>
</div>
2022-05-13 20:21:13 +02:00
<a id="aaeac7207dae4f03273607ba021530da6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaeac7207dae4f03273607ba021530da6">&#9670;&nbsp;</a></span>receive_stream()</h2>
2015-07-10 18:06:19 +02:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void* receive_stream </td>
<td>(</td>
<td class="paramtype"><a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a>&#160;</td>
<td class="paramname"><em>connected_socket</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#aba7397be054e36dc0284a6589736135e">OPJ_SIZE_T</a>&#160;</td>
<td class="paramname"><em>length</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>receive data stream to client </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">connected_socket</td><td>file descriptor of the connected socket </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>length of the receiving stream </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>pointer to the data stream (memory allocated), NULL if failed </dd></dl>
2022-05-13 20:21:13 +02:00
<p class="reference">References <a class="el" href="sock__manager_8c.html#a77b5d5af2adb2cfa7ec785b592fc4074">FCGI_stderr</a>.</p>
2015-07-10 18:06:19 +02:00
2022-05-13 20:21:13 +02:00
<p class="reference">Referenced by <a class="el" href="imgsock__manager_8h.html#a79dc7124bbbf2db9f5b6149a6752be13">receive_JPIPstream()</a>, and <a class="el" href="auxtrans__manager_8c.html#abf058dd7791756ca13f9a01abf5a38af">recv_ack()</a>.</p>
2015-07-10 18:06:19 +02:00
</div>
</div>
2022-05-13 20:21:13 +02:00
<a id="a0257a018729bc73d0ccc970069a6352c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0257a018729bc73d0ccc970069a6352c">&#9670;&nbsp;</a></span>receive_string()</h2>
2015-07-10 18:06:19 +02:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char* receive_string </td>
<td>(</td>
<td class="paramtype"><a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a>&#160;</td>
<td class="paramname"><em>connected_socket</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
2022-05-13 20:21:13 +02:00
<p>receive a string line (ending with '<br />
2015-07-10 18:06:19 +02:00
') from client, return malloc string </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">connected_socket</td><td>file descriptor of the connected socket </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>pointer to the string (memory allocated) </dd></dl>
2022-05-13 20:21:13 +02:00
<p class="reference">References <a class="el" href="sock__manager_8h.html#a8b5839f71a3b6e7d64b2d5e9967e3dd1">BUF_LEN</a>, and <a class="el" href="sock__manager_8c.html#a777bd29ec89be2ffb64e799ba58a3c55">receive_line()</a>.</p>
2015-07-10 18:06:19 +02:00
2022-05-13 20:21:13 +02:00
<p class="reference">Referenced by <a class="el" href="dec__clientmsg__handler_8h.html#aa47b5aa4364e9df31b03eca619009445">handle_CIDreqMSG()</a>, <a class="el" href="dec__clientmsg__handler_8h.html#a1b541c52a440a95733cd0f961189ad5a">handle_dstCIDreqMSG()</a>, <a class="el" href="dec__clientmsg__handler_8h.html#a163197f925cd8d6f60da5b6151e01c3b">handle_JP2saveMSG()</a>, <a class="el" href="dec__clientmsg__handler_8h.html#ac1721ebe188622dcbd80540e1bc4a237">handle_PNMreqMSG()</a>, <a class="el" href="dec__clientmsg__handler_8h.html#a98cac1bbde27cbbd1d4292985b3f5b49">handle_SIZreqMSG()</a>, <a class="el" href="dec__clientmsg__handler_8h.html#a86f804d83268e44baef977b7b54cbbcc">handle_TIDreqMSG()</a>, <a class="el" href="dec__clientmsg__handler_8h.html#a22becf5f598618de947805f858b1a617">handle_XMLreqMSG()</a>, and <a class="el" href="auxtrans__manager_8c.html#a728ad6700ddf9f738b3ac5a1ac69f379">identify_cid()</a>.</p>
2015-07-10 18:06:19 +02:00
</div>
</div>
2022-05-13 20:21:13 +02:00
<a id="a7f5fb3b9c22e70ba6e82ca5560d98cc5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f5fb3b9c22e70ba6e82ca5560d98cc5">&#9670;&nbsp;</a></span>send_stream()</h2>
2015-07-10 18:06:19 +02:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void send_stream </td>
<td>(</td>
<td class="paramtype"><a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a>&#160;</td>
<td class="paramname"><em>connected_socket</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const void *&#160;</td>
<td class="paramname"><em>stream</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#aba7397be054e36dc0284a6589736135e">OPJ_SIZE_T</a>&#160;</td>
<td class="paramname"><em>length</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>send data stream to client </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">connected_socket</td><td>file descriptor of the connected socket </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>data stream </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>length of data stream </td></tr>
</table>
</dd>
</dl>
2022-05-13 20:21:13 +02:00
<p class="reference">References <a class="el" href="sock__manager_8c.html#a77b5d5af2adb2cfa7ec785b592fc4074">FCGI_stderr</a>.</p>
2015-07-10 18:06:19 +02:00
2022-05-13 20:21:13 +02:00
<p class="reference">Referenced by <a class="el" href="auxtrans__manager_8c.html#a1b2a6aa920175602327fffe3680d20a4">aux_streaming()</a>, <a class="el" href="imgsock__manager_8h.html#aef215de317da9d172aeecff45d9cd8bc">response_signal()</a>, <a class="el" href="imgsock__manager_8c.html#a920368b941b6d4f71f7fb778aa60b018">send_IDstream()</a>, <a class="el" href="imgsock__manager_8h.html#ad71cceb07cfdf4a4a83145a8ce1851bb">send_PNMstream()</a>, <a class="el" href="imgsock__manager_8h.html#a26cd2f3c7292e32bbc04bb22da49c8a1">send_SIZstream()</a>, and <a class="el" href="imgsock__manager_8h.html#a50505110646211f92d184f42b155af03">send_XMLstream()</a>.</p>
2015-07-10 18:06:19 +02:00
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
2022-05-13 20:21:13 +02:00
</a> 1.8.17
2015-07-10 18:06:19 +02:00
</small></address>
</body>
</html>