openjpeg/doxygen/imgsock__manager_8h.html

621 lines
34 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>OpenJPEG: imgsock_manager.h 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;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">OpenJPEG
&#160;<span id="projectnumber">2.3.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d522931ffa1371640980b621734a4381.html">Users</a></li><li class="navelem"><a class="el" href="dir_694e20c96f4fc1be4aed4f026eadce94.html">antonin</a></li><li class="navelem"><a class="el" href="dir_3ca1ad36e65e03f9e8d67ddc2553765b.html">dev</a></li><li class="navelem"><a class="el" href="dir_181a881edfcb8646dab693a228fa6bde.html">opj</a></li><li class="navelem"><a class="el" href="dir_5064bb5511811c3176850b7e47443f14.html">github</a></li><li class="navelem"><a class="el" href="dir_0b20524d8f8835ca75acc430451c8412.html">openjpeg</a></li><li class="navelem"><a class="el" href="dir_e3f8a8e294f8271ee71cbcf3c2acacc1.html">src</a></li><li class="navelem"><a class="el" href="dir_da83fe5fdfb6c4554d36abffc03790ad.html">lib</a></li><li class="navelem"><a class="el" href="dir_6ec2d9a1b37a1187cc46aeaf3b19e1b3.html">openjpip</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">imgsock_manager.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="byte__manager_8h_source.html">byte_manager.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="sock__manager_8h_source.html">sock_manager.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="opj__includes_8h_source.html">opj_includes.h</a>&quot;</code><br />
</div>
<p><a href="imgsock__manager_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a7b8aae575f31be24372855ed4baebde1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="imgsock__manager_8h.html#a7b8aae575f31be24372855ed4baebde1">NUM_OF_MSGTYPES</a>&#160;&#160;&#160;9</td></tr>
<tr class="separator:a7b8aae575f31be24372855ed4baebde1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a4f1a3f3e8cfdfcd734cb176619c48d4a"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="imgsock__manager_8h.html#a7378ec24a6dd5918089470e4305c8faa">eMSGTYPE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="imgsock__manager_8h.html#a4f1a3f3e8cfdfcd734cb176619c48d4a">msgtype_t</a></td></tr>
<tr class="separator:a4f1a3f3e8cfdfcd734cb176619c48d4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a7378ec24a6dd5918089470e4305c8faa"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="imgsock__manager_8h.html#a7378ec24a6dd5918089470e4305c8faa">eMSGTYPE</a> { <br />
&#160;&#160;<a class="el" href="imgsock__manager_8h.html#a7378ec24a6dd5918089470e4305c8faaa0dfb6f17f0bee8ddc98b1e8950de6529">JPIPSTREAM</a>,
<a class="el" href="imgsock__manager_8h.html#a7378ec24a6dd5918089470e4305c8faaa8b60c6e0b99c9733b4bee376cafa8863">PNMREQ</a>,
<a class="el" href="imgsock__manager_8h.html#a7378ec24a6dd5918089470e4305c8faaacabd3c9cad61c4e2fed057afb09169cd">XMLREQ</a>,
<a class="el" href="imgsock__manager_8h.html#a7378ec24a6dd5918089470e4305c8faaab4f6faa284af2005585a1fc3c61b8ac7">TIDREQ</a>,
<br />
&#160;&#160;<a class="el" href="imgsock__manager_8h.html#a7378ec24a6dd5918089470e4305c8faaaebfceef8e9c933e7ec8f60e52221212b">CIDREQ</a>,
<a class="el" href="imgsock__manager_8h.html#a7378ec24a6dd5918089470e4305c8faaa9a175716967f609dfad2631136cce0f9">CIDDST</a>,
<a class="el" href="imgsock__manager_8h.html#a7378ec24a6dd5918089470e4305c8faaa5bbfd69d9021c8a179d51e1c530f6ed6">SIZREQ</a>,
<a class="el" href="imgsock__manager_8h.html#a7378ec24a6dd5918089470e4305c8faaad396ff7696b62b0d53dbe344cff664f4">JP2SAVE</a>,
<br />
&#160;&#160;<a class="el" href="imgsock__manager_8h.html#a7378ec24a6dd5918089470e4305c8faaa76bdc8adfd6c6463ab269ff4c06be9b4">QUIT</a>,
<a class="el" href="imgsock__manager_8h.html#a7378ec24a6dd5918089470e4305c8faaaa1d590c1e9fe651a91a0580c2401e705">MSGERROR</a>
<br />
}<tr class="separator:a7378ec24a6dd5918089470e4305c8faa"><td class="memSeparator" colspan="2">&#160;</td></tr>
</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:a88596b309ecbf50e65da25a0aea426e4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="imgsock__manager_8h.html#a4f1a3f3e8cfdfcd734cb176619c48d4a">msgtype_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="imgsock__manager_8h.html#a88596b309ecbf50e65da25a0aea426e4">identify_clientmsg</a> (<a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a> connected_socket)</td></tr>
<tr class="memdesc:a88596b309ecbf50e65da25a0aea426e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">indeitify client message type <a href="#a88596b309ecbf50e65da25a0aea426e4">More...</a><br /></td></tr>
<tr class="separator:a88596b309ecbf50e65da25a0aea426e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79dc7124bbbf2db9f5b6149a6752be13"><td class="memItemLeft" align="right" valign="top"><a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="imgsock__manager_8h.html#a79dc7124bbbf2db9f5b6149a6752be13">receive_JPIPstream</a> (<a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a> connected_socket, char **target, char **tid, char **cid, <a class="el" href="openjpeg_8h.html#aba7397be054e36dc0284a6589736135e">OPJ_SIZE_T</a> *streamlen)</td></tr>
<tr class="memdesc:a79dc7124bbbf2db9f5b6149a6752be13"><td class="mdescLeft">&#160;</td><td class="mdescRight">receive a JPT- JPP- stream from client <a href="#a79dc7124bbbf2db9f5b6149a6752be13">More...</a><br /></td></tr>
<tr class="separator:a79dc7124bbbf2db9f5b6149a6752be13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad71cceb07cfdf4a4a83145a8ce1851bb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="imgsock__manager_8h.html#ad71cceb07cfdf4a4a83145a8ce1851bb">send_PNMstream</a> (<a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a> connected_socket, <a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> *pnmstream, unsigned int width, unsigned int height, unsigned int numofcomp, <a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> maxval)</td></tr>
<tr class="memdesc:ad71cceb07cfdf4a4a83145a8ce1851bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">send PGM/PPM image stream to the client <a href="#ad71cceb07cfdf4a4a83145a8ce1851bb">More...</a><br /></td></tr>
<tr class="separator:ad71cceb07cfdf4a4a83145a8ce1851bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50505110646211f92d184f42b155af03"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="imgsock__manager_8h.html#a50505110646211f92d184f42b155af03">send_XMLstream</a> (<a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a> connected_socket, <a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> *xmlstream, <a class="el" href="openjpeg_8h.html#aba7397be054e36dc0284a6589736135e">OPJ_SIZE_T</a> length)</td></tr>
<tr class="memdesc:a50505110646211f92d184f42b155af03"><td class="mdescLeft">&#160;</td><td class="mdescRight">send XML data stream to the client <a href="#a50505110646211f92d184f42b155af03">More...</a><br /></td></tr>
<tr class="separator:a50505110646211f92d184f42b155af03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b2bca455725152af924bfb025e5b568"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="imgsock__manager_8h.html#a8b2bca455725152af924bfb025e5b568">send_TIDstream</a> (<a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a> connected_socket, const char *tid, <a class="el" href="openjpeg_8h.html#aba7397be054e36dc0284a6589736135e">OPJ_SIZE_T</a> tidlen)</td></tr>
<tr class="memdesc:a8b2bca455725152af924bfb025e5b568"><td class="mdescLeft">&#160;</td><td class="mdescRight">send TID data stream to the client <a href="#a8b2bca455725152af924bfb025e5b568">More...</a><br /></td></tr>
<tr class="separator:a8b2bca455725152af924bfb025e5b568"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a081b42d4f0534776013732cc12fc3462"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="imgsock__manager_8h.html#a081b42d4f0534776013732cc12fc3462">send_CIDstream</a> (<a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a> connected_socket, const char *cid, <a class="el" href="openjpeg_8h.html#aba7397be054e36dc0284a6589736135e">OPJ_SIZE_T</a> cidlen)</td></tr>
<tr class="memdesc:a081b42d4f0534776013732cc12fc3462"><td class="mdescLeft">&#160;</td><td class="mdescRight">send CID data stream to the client <a href="#a081b42d4f0534776013732cc12fc3462">More...</a><br /></td></tr>
<tr class="separator:a081b42d4f0534776013732cc12fc3462"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26cd2f3c7292e32bbc04bb22da49c8a1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="imgsock__manager_8h.html#a26cd2f3c7292e32bbc04bb22da49c8a1">send_SIZstream</a> (<a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a> connected_socket, unsigned int width, unsigned int height)</td></tr>
<tr class="memdesc:a26cd2f3c7292e32bbc04bb22da49c8a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">send SIZ data stream to the client <a href="#a26cd2f3c7292e32bbc04bb22da49c8a1">More...</a><br /></td></tr>
<tr class="separator:a26cd2f3c7292e32bbc04bb22da49c8a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef215de317da9d172aeecff45d9cd8bc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="imgsock__manager_8h.html#aef215de317da9d172aeecff45d9cd8bc">response_signal</a> (<a class="el" href="sock__manager_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a> connected_socket, <a class="el" href="openjpeg_8h.html#abb5dad6294f4611f1925388e919b16f4">OPJ_BOOL</a> succeed)</td></tr>
<tr class="memdesc:aef215de317da9d172aeecff45d9cd8bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">send response signal to the client <a href="#aef215de317da9d172aeecff45d9cd8bc">More...</a><br /></td></tr>
<tr class="separator:aef215de317da9d172aeecff45d9cd8bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>PROTOCOL specification to communicate with opj_dec_server</p>
<h1><a class="anchor" id="sec1"></a>
JPIP-stream</h1>
<p>Cache JPT- JPP- stream in server</p>
<p>client -&gt; server: JPIP-stream\n version 1.1\n (optional for cid registration: targetnamestring\n tidstring\n cidstring\n) bytelengthvalue\n data <br />
server -&gt; client: 1 or 0 (of 1Byte response signal)</p>
<h1><a class="anchor" id="sec2"></a>
PNM request</h1>
<p>Get decoded PGM/PPM image</p>
<p>client -&gt; server: PNM request\n [cid/tid]string\n fw\n fh\n <br />
server -&gt; client: P6 or P5 (2Byte) width (2Byte Big endian) height (2Byte Big endian) maxval (1Byte) data</p>
<h1><a class="anchor" id="sec3"></a>
XML request</h1>
<p>Get XML data</p>
<p>client -&gt; server: XML request\n <br />
server -&gt; client: XML (3Byte) length (2Byte Big endian) data</p>
<h1><a class="anchor" id="sec4"></a>
TID request</h1>
<p>Get target ID of target image</p>
<p>client -&gt; server: TID request\n targetname\n <br />
server -&gt; client: TID (3Byte) length (1Byte) tiddata</p>
<h1><a class="anchor" id="sec5"></a>
CID request</h1>
<p>Get Channel ID of identical target image</p>
<p>client -&gt; server: CID request\n targetname\n <br />
server -&gt; client: CID (3Byte) length (1Byte) ciddata</p>
<h1><a class="anchor" id="sec6"></a>
CID destroy</h1>
<p>Close Channel ID</p>
<p>client -&gt; server: CID destroy\n ciddata <br />
server -&gt; client: 1 or 0 (of 1Byte response signal)</p>
<h1><a class="anchor" id="sec7"></a>
SIZ request</h1>
<p>Get original size of image</p>
<p>client -&gt; server: SIZ request\n tidstring\n cidstring\n <br />
server -&gt; client: SIZ (3Byte) width (3Byte Big endian) height (3Byte Big endian)</p>
<h1><a class="anchor" id="sec8"></a>
JP2 save</h1>
<p>Save in JP2 file format</p>
<p>client -&gt; server: JP2 save\n ciddata <br />
server -&gt; client: 1 or 0 (of 1Byte response signal)</p>
<h1><a class="anchor" id="sec9"></a>
QUIT</h1>
<p>Quit the opj_dec_server program</p>
<p>client -&gt; server: quit or QUIT </p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a7b8aae575f31be24372855ed4baebde1"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define NUM_OF_MSGTYPES&#160;&#160;&#160;9</td>
</tr>
</table>
</div><div class="memdoc">
<p>Referenced by <a class="el" href="imgsock__manager_8h.html#a88596b309ecbf50e65da25a0aea426e4">identify_clientmsg()</a>.</p>
</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="a4f1a3f3e8cfdfcd734cb176619c48d4a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef enum <a class="el" href="imgsock__manager_8h.html#a7378ec24a6dd5918089470e4305c8faa">eMSGTYPE</a> <a class="el" href="imgsock__manager_8h.html#a4f1a3f3e8cfdfcd734cb176619c48d4a">msgtype_t</a></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="a7378ec24a6dd5918089470e4305c8faa"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="imgsock__manager_8h.html#a7378ec24a6dd5918089470e4305c8faa">eMSGTYPE</a></td>
</tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="a7378ec24a6dd5918089470e4305c8faaa0dfb6f17f0bee8ddc98b1e8950de6529"></a>JPIPSTREAM&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a7378ec24a6dd5918089470e4305c8faaa8b60c6e0b99c9733b4bee376cafa8863"></a>PNMREQ&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a7378ec24a6dd5918089470e4305c8faaacabd3c9cad61c4e2fed057afb09169cd"></a>XMLREQ&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a7378ec24a6dd5918089470e4305c8faaab4f6faa284af2005585a1fc3c61b8ac7"></a>TIDREQ&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a7378ec24a6dd5918089470e4305c8faaaebfceef8e9c933e7ec8f60e52221212b"></a>CIDREQ&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a7378ec24a6dd5918089470e4305c8faaa9a175716967f609dfad2631136cce0f9"></a>CIDDST&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a7378ec24a6dd5918089470e4305c8faaa5bbfd69d9021c8a179d51e1c530f6ed6"></a>SIZREQ&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a7378ec24a6dd5918089470e4305c8faaad396ff7696b62b0d53dbe344cff664f4"></a>JP2SAVE&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a7378ec24a6dd5918089470e4305c8faaa76bdc8adfd6c6463ab269ff4c06be9b4"></a>QUIT&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a7378ec24a6dd5918089470e4305c8faaaa1d590c1e9fe651a91a0580c2401e705"></a>MSGERROR&#160;</td><td class="fielddoc">
</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a88596b309ecbf50e65da25a0aea426e4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="imgsock__manager_8h.html#a4f1a3f3e8cfdfcd734cb176619c48d4a">msgtype_t</a> identify_clientmsg </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">
<p>indeitify client message type </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>message type </dd></dl>
<p>References <a class="el" href="sock__manager_8h.html#a8b5839f71a3b6e7d64b2d5e9967e3dd1">BUF_LEN</a>, <a class="el" href="imgsock__manager_8h.html#a7378ec24a6dd5918089470e4305c8faaaa1d590c1e9fe651a91a0580c2401e705">MSGERROR</a>, <a class="el" href="imgsock__manager_8h.html#a7b8aae575f31be24372855ed4baebde1">NUM_OF_MSGTYPES</a>, and <a class="el" href="sock__manager_8c.html#a777bd29ec89be2ffb64e799ba58a3c55">receive_line()</a>.</p>
<p>Referenced by <a class="el" href="openjpip_8h.html#a43441d763d72585d9cc6c9b4b4ea422e">handle_clientreq()</a>.</p>
</div>
</div>
<a class="anchor" id="a79dc7124bbbf2db9f5b6149a6752be13"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a>* receive_JPIPstream </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>target</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char **&#160;</td>
<td class="paramname"><em>tid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char **&#160;</td>
<td class="paramname"><em>cid</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>streamlen</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>receive a JPT- JPP- stream 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">target</td><td>address of received target file name string pointer ( malloced, if not received, NULL) </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">tid</td><td>address of received target identifier string pointer ( malloced, if not received, null string) </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">cid</td><td>address of received channel identifier string pointer ( malloced, if not received, null string) </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">streamlen</td><td>length of the received codestream </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>JPT- JPP- codestream </dd></dl>
<p>References <a class="el" href="sock__manager_8h.html#a8b5839f71a3b6e7d64b2d5e9967e3dd1">BUF_LEN</a>, <a class="el" href="sock__manager_8c.html#a777bd29ec89be2ffb64e799ba58a3c55">receive_line()</a>, and <a class="el" href="sock__manager_8c.html#aaeac7207dae4f03273607ba021530da6">receive_stream()</a>.</p>
<p>Referenced by <a class="el" href="dec__clientmsg__handler_8h.html#ab4022f5e297b5d3a456cd841c3902675">handle_JPIPstreamMSG()</a>.</p>
</div>
</div>
<a class="anchor" id="aef215de317da9d172aeecff45d9cd8bc"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void response_signal </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#abb5dad6294f4611f1925388e919b16f4">OPJ_BOOL</a>&#160;</td>
<td class="paramname"><em>succeed</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>send response signal to the 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">succeed</td><td>whether if the requested process succeeded </td></tr>
</table>
</dd>
</dl>
<p>References <a class="el" href="sock__manager_8c.html#a7f5fb3b9c22e70ba6e82ca5560d98cc5">send_stream()</a>.</p>
<p>Referenced by <a class="el" href="dec__clientmsg__handler_8h.html#a1b541c52a440a95733cd0f961189ad5a">handle_dstCIDreqMSG()</a>, and <a class="el" href="dec__clientmsg__handler_8h.html#ab4022f5e297b5d3a456cd841c3902675">handle_JPIPstreamMSG()</a>.</p>
</div>
</div>
<a class="anchor" id="a081b42d4f0534776013732cc12fc3462"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void send_CIDstream </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 char *&#160;</td>
<td class="paramname"><em>cid</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>cidlen</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>send CID data stream to the 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">cid</td><td>cid string </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">cidlen</td><td>legnth of the cid string </td></tr>
</table>
</dd>
</dl>
<p>References <a class="el" href="imgsock__manager_8c.html#a920368b941b6d4f71f7fb778aa60b018">send_IDstream()</a>.</p>
<p>Referenced by <a class="el" href="dec__clientmsg__handler_8h.html#aa47b5aa4364e9df31b03eca619009445">handle_CIDreqMSG()</a>.</p>
</div>
</div>
<a class="anchor" id="ad71cceb07cfdf4a4a83145a8ce1851bb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void send_PNMstream </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="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> *&#160;</td>
<td class="paramname"><em>pnmstream</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int&#160;</td>
<td class="paramname"><em>width</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int&#160;</td>
<td class="paramname"><em>height</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int&#160;</td>
<td class="paramname"><em>numofcomp</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a>&#160;</td>
<td class="paramname"><em>maxval</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>send PGM/PPM image stream to the 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">pnmstream</td><td>PGM/PPM image codestream </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>width of the PGM/PPM image (different from the original image) </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>height of the PGM/PPM image </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">numofcomp</td><td>number of components of the image </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">maxval</td><td>maximum value of the image (only 255 supported) </td></tr>
</table>
</dd>
</dl>
<p>References <a class="el" href="sock__manager_8c.html#a7f5fb3b9c22e70ba6e82ca5560d98cc5">send_stream()</a>.</p>
<p>Referenced by <a class="el" href="dec__clientmsg__handler_8h.html#ac1721ebe188622dcbd80540e1bc4a237">handle_PNMreqMSG()</a>.</p>
</div>
</div>
<a class="anchor" id="a26cd2f3c7292e32bbc04bb22da49c8a1"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void send_SIZstream </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">unsigned int&#160;</td>
<td class="paramname"><em>width</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int&#160;</td>
<td class="paramname"><em>height</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>send SIZ data stream to the 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">width</td><td>original width of the image </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>original height of the image </td></tr>
</table>
</dd>
</dl>
<p>References <a class="el" href="sock__manager_8c.html#a7f5fb3b9c22e70ba6e82ca5560d98cc5">send_stream()</a>.</p>
<p>Referenced by <a class="el" href="dec__clientmsg__handler_8h.html#a98cac1bbde27cbbd1d4292985b3f5b49">handle_SIZreqMSG()</a>.</p>
</div>
</div>
<a class="anchor" id="a8b2bca455725152af924bfb025e5b568"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void send_TIDstream </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 char *&#160;</td>
<td class="paramname"><em>tid</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>tidlen</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>send TID data stream to the 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">tid</td><td>tid string </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">tidlen</td><td>legnth of the tid string </td></tr>
</table>
</dd>
</dl>
<p>References <a class="el" href="imgsock__manager_8c.html#a920368b941b6d4f71f7fb778aa60b018">send_IDstream()</a>.</p>
<p>Referenced by <a class="el" href="dec__clientmsg__handler_8h.html#a86f804d83268e44baef977b7b54cbbcc">handle_TIDreqMSG()</a>.</p>
</div>
</div>
<a class="anchor" id="a50505110646211f92d184f42b155af03"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void send_XMLstream </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="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> *&#160;</td>
<td class="paramname"><em>xmlstream</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 XML data stream to the 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">xmlstream</td><td>xml data stream </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>legnth of the xml data stream </td></tr>
</table>
</dd>
</dl>
<p>References <a class="el" href="sock__manager_8c.html#a7f5fb3b9c22e70ba6e82ca5560d98cc5">send_stream()</a>.</p>
<p>Referenced by <a class="el" href="dec__clientmsg__handler_8h.html#a22becf5f598618de947805f858b1a617">handle_XMLreqMSG()</a>.</p>
</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"/>
</a> 1.8.10
</small></address>
</body>
</html>