<ahref="imgsock__manager_8h.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">/*</span></div>
<divclass="line"><aname="l00009"></a><spanclass="lineno"> 9</span> <spanclass="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<divclass="line"><aname="l00010"></a><spanclass="lineno"> 10</span> <spanclass="comment"> * modification, are permitted provided that the following conditions</span></div>
<divclass="line"><aname="l00011"></a><spanclass="lineno"> 11</span> <spanclass="comment"> * are met:</span></div>
<divclass="line"><aname="l00012"></a><spanclass="lineno"> 12</span> <spanclass="comment"> * 1. Redistributions of source code must retain the above copyright</span></div>
<divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> <spanclass="comment"> * notice, this list of conditions and the following disclaimer.</span></div>
<divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> <spanclass="comment"> * 2. Redistributions in binary form must reproduce the above copyright</span></div>
<divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="comment"> * notice, this list of conditions and the following disclaimer in the</span></div>
<divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="comment"> * documentation and/or other materials provided with the distribution.</span></div>
<divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'</span></div>
<divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="comment"> * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div>
<divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="comment"> * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE</span></div>
<divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> <spanclass="comment"> * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE</span></div>
<divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> <spanclass="comment"> * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR</span></div>
<divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> <spanclass="comment"> * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF</span></div>
<divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span> <spanclass="comment"> * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS</span></div>
<divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> <spanclass="comment"> * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</span></div>
<divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span> <spanclass="comment"> * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)</span></div>
<divclass="line"><aname="l00027"></a><spanclass="lineno"> 27</span> <spanclass="comment"> * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</span></div>
<divclass="line"><aname="l00028"></a><spanclass="lineno"> 28</span> <spanclass="comment"> * POSSIBILITY OF SUCH DAMAGE.</span></div>
<divclass="ttc"id="aimgsock__manager_8h_html_a26cd2f3c7292e32bbc04bb22da49c8a1"><divclass="ttname"><ahref="imgsock__manager_8h.html#a26cd2f3c7292e32bbc04bb22da49c8a1">send_SIZstream</a></div><divclass="ttdeci">void send_SIZstream(SOCKET connected_socket, unsigned int width, unsigned int height)</div><divclass="ttdoc">send SIZ data stream to the client</div><divclass="ttdef"><b>Definition:</b> imgsock_manager.c:196</div></div>
<divclass="ttc"id="aimgsock__manager_8h_html_a79dc7124bbbf2db9f5b6149a6752be13"><divclass="ttname"><ahref="imgsock__manager_8h.html#a79dc7124bbbf2db9f5b6149a6752be13">receive_JPIPstream</a></div><divclass="ttdeci">Byte_t * receive_JPIPstream(SOCKET connected_socket, char **target, char **tid, char **cid, OPJ_SIZE_T *streamlen)</div><divclass="ttdoc">receive a JPT- JPP- stream from client</div><divclass="ttdef"><b>Definition:</b> imgsock_manager.c:67</div></div>
<divclass="ttc"id="asock__manager_8c_html_aaeac7207dae4f03273607ba021530da6"><divclass="ttname"><ahref="sock__manager_8c.html#aaeac7207dae4f03273607ba021530da6">receive_stream</a></div><divclass="ttdeci">void * receive_stream(SOCKET connected_socket, OPJ_SIZE_T length)</div><divclass="ttdoc">receive data stream to client</div><divclass="ttdef"><b>Definition:</b> sock_manager.c:120</div></div>
<divclass="ttc"id="aimgsock__manager_8c_html_ad71cceb07cfdf4a4a83145a8ce1851bb"><divclass="ttname"><ahref="imgsock__manager_8c.html#ad71cceb07cfdf4a4a83145a8ce1851bb">send_PNMstream</a></div><divclass="ttdeci">void send_PNMstream(SOCKET connected_socket, Byte_t *pnmstream, unsigned int width, unsigned int height, unsigned int numofcomp, Byte_t maxval)</div><divclass="ttdoc">send PGM/PPM image stream to the client</div><divclass="ttdef"><b>Definition:</b> imgsock_manager.c:176</div></div>
<divclass="ttc"id="aimgsock__manager_8c_html_a8b2bca455725152af924bfb025e5b568"><divclass="ttname"><ahref="imgsock__manager_8c.html#a8b2bca455725152af924bfb025e5b568">send_TIDstream</a></div><divclass="ttdeci">void send_TIDstream(SOCKET connected_socket, const char *tid, OPJ_SIZE_T tidlen)</div><divclass="ttdoc">send TID data stream to the client</div><divclass="ttdef"><b>Definition:</b> imgsock_manager.c:157</div></div>
<divclass="ttc"id="aimgsock__manager_8h_html_aef215de317da9d172aeecff45d9cd8bc"><divclass="ttname"><ahref="imgsock__manager_8h.html#aef215de317da9d172aeecff45d9cd8bc">response_signal</a></div><divclass="ttdeci">void response_signal(SOCKET connected_socket, OPJ_BOOL succeed)</div><divclass="ttdoc">send response signal to the client</div><divclass="ttdef"><b>Definition:</b> imgsock_manager.c:214</div></div>
<divclass="ttc"id="aimgsock__manager_8h_html_a081b42d4f0534776013732cc12fc3462"><divclass="ttname"><ahref="imgsock__manager_8h.html#a081b42d4f0534776013732cc12fc3462">send_CIDstream</a></div><divclass="ttdeci">void send_CIDstream(SOCKET connected_socket, const char *cid, OPJ_SIZE_T cidlen)</div><divclass="ttdoc">send CID data stream to the client</div><divclass="ttdef"><b>Definition:</b> imgsock_manager.c:152</div></div>
<divclass="ttc"id="aimgsock__manager_8c_html_a79dc7124bbbf2db9f5b6149a6752be13"><divclass="ttname"><ahref="imgsock__manager_8c.html#a79dc7124bbbf2db9f5b6149a6752be13">receive_JPIPstream</a></div><divclass="ttdeci">Byte_t * receive_JPIPstream(SOCKET connected_socket, char **target, char **tid, char **cid, OPJ_SIZE_T *streamlen)</div><divclass="ttdoc">receive a JPT- JPP- stream from client</div><divclass="ttdef"><b>Definition:</b> imgsock_manager.c:67</div></div>
<divclass="ttc"id="asock__manager_8c_html_a777bd29ec89be2ffb64e799ba58a3c55"><divclass="ttname"><ahref="sock__manager_8c.html#a777bd29ec89be2ffb64e799ba58a3c55">receive_line</a></div><divclass="ttdeci">OPJ_SIZE_T receive_line(SOCKET connected_socket, char *p)</div><divclass="ttdoc">receive a string line (ending with ' ') from client</div><divclass="ttdef"><b>Definition:</b> sock_manager.c:142</div></div>
<divclass="ttc"id="aimgsock__manager_8h_html_a50505110646211f92d184f42b155af03"><divclass="ttname"><ahref="imgsock__manager_8h.html#a50505110646211f92d184f42b155af03">send_XMLstream</a></div><divclass="ttdeci">void send_XMLstream(SOCKET connected_socket, Byte_t *xmlstream, OPJ_SIZE_T length)</div><divclass="ttdoc">send XML data stream to the client</div><divclass="ttdef"><b>Definition:</b> imgsock_manager.c:134</div></div>
<divclass="ttc"id="aimgsock__manager_8c_html_a26cd2f3c7292e32bbc04bb22da49c8a1"><divclass="ttname"><ahref="imgsock__manager_8c.html#a26cd2f3c7292e32bbc04bb22da49c8a1">send_SIZstream</a></div><divclass="ttdeci">void send_SIZstream(SOCKET connected_socket, unsigned int width, unsigned int height)</div><divclass="ttdoc">send SIZ data stream to the client</div><divclass="ttdef"><b>Definition:</b> imgsock_manager.c:196</div></div>
<divclass="ttc"id="aimgsock__manager_8c_html_a50505110646211f92d184f42b155af03"><divclass="ttname"><ahref="imgsock__manager_8c.html#a50505110646211f92d184f42b155af03">send_XMLstream</a></div><divclass="ttdeci">void send_XMLstream(SOCKET connected_socket, Byte_t *xmlstream, OPJ_SIZE_T length)</div><divclass="ttdoc">send XML data stream to the client</div><divclass="ttdef"><b>Definition:</b> imgsock_manager.c:134</div></div>
<divclass="ttc"id="aimgsock__manager_8c_html_aef215de317da9d172aeecff45d9cd8bc"><divclass="ttname"><ahref="imgsock__manager_8c.html#aef215de317da9d172aeecff45d9cd8bc">response_signal</a></div><divclass="ttdeci">void response_signal(SOCKET connected_socket, OPJ_BOOL succeed)</div><divclass="ttdoc">send response signal to the client</div><divclass="ttdef"><b>Definition:</b> imgsock_manager.c:214</div></div>
<divclass="ttc"id="aimgsock__manager_8h_html_ad71cceb07cfdf4a4a83145a8ce1851bb"><divclass="ttname"><ahref="imgsock__manager_8h.html#ad71cceb07cfdf4a4a83145a8ce1851bb">send_PNMstream</a></div><divclass="ttdeci">void send_PNMstream(SOCKET connected_socket, Byte_t *pnmstream, unsigned int width, unsigned int height, unsigned int numofcomp, Byte_t maxval)</div><divclass="ttdoc">send PGM/PPM image stream to the client</div><divclass="ttdef"><b>Definition:</b> imgsock_manager.c:176</div></div>
<divclass="ttc"id="aimgsock__manager_8c_html_a081b42d4f0534776013732cc12fc3462"><divclass="ttname"><ahref="imgsock__manager_8c.html#a081b42d4f0534776013732cc12fc3462">send_CIDstream</a></div><divclass="ttdeci">void send_CIDstream(SOCKET connected_socket, const char *cid, OPJ_SIZE_T cidlen)</div><divclass="ttdoc">send CID data stream to the client</div><divclass="ttdef"><b>Definition:</b> imgsock_manager.c:152</div></div>
<divclass="ttc"id="aimgsock__manager_8h_html_a8b2bca455725152af924bfb025e5b568"><divclass="ttname"><ahref="imgsock__manager_8h.html#a8b2bca455725152af924bfb025e5b568">send_TIDstream</a></div><divclass="ttdeci">void send_TIDstream(SOCKET connected_socket, const char *tid, OPJ_SIZE_T tidlen)</div><divclass="ttdoc">send TID data stream to the client</div><divclass="ttdef"><b>Definition:</b> imgsock_manager.c:157</div></div>