blob: 97322f4e337143c2bd53d048c1f067d9e8e3eda8 [file] [log] [blame]
<!-- HTML header for doxygen 1.8.13-->
<!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.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Apache Log4cxx: log4cxx::helpers::SocketOutputStream Class 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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '42']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
</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">Apache Log4cxx
&#160;<span id="projectnumber">Version 1.2.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<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:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('classlog4cxx_1_1helpers_1_1SocketOutputStream.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classlog4cxx_1_1helpers_1_1SocketOutputStream-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">log4cxx::helpers::SocketOutputStream Class Reference</div></div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="socketoutputstream_8h_source.html">socketoutputstream.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for log4cxx::helpers::SocketOutputStream:</div>
<div class="dyncontent">
<div class="center">
<img src="classlog4cxx_1_1helpers_1_1SocketOutputStream.png" usemap="#log4cxx::helpers::SocketOutputStream_map" alt=""/>
<map id="log4cxx::helpers::SocketOutputStream_map" name="log4cxx::helpers::SocketOutputStream_map">
<area href="classlog4cxx_1_1helpers_1_1OutputStream.html" title="Abstract class for writing to character streams." alt="log4cxx::helpers::OutputStream" shape="rect" coords="0,56,223,80"/>
<area href="classlog4cxx_1_1helpers_1_1Object.html" title="base class for java-like objects." alt="log4cxx::helpers::Object" shape="rect" coords="0,0,223,24"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a0ea15e617cc9c31d0ea2ad4837c71a9f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1SocketOutputStream.html#a0ea15e617cc9c31d0ea2ad4837c71a9f">SocketOutputStream</a> (const SocketPtr &amp;socket)</td></tr>
<tr class="separator:a0ea15e617cc9c31d0ea2ad4837c71a9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4b1bf480e00ce08ade189a993de106a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1SocketOutputStream.html#ab4b1bf480e00ce08ade189a993de106a">~SocketOutputStream</a> ()</td></tr>
<tr class="separator:ab4b1bf480e00ce08ade189a993de106a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7fa5ddc743533d6e361f13cced2369c0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1SocketOutputStream.html#a7fa5ddc743533d6e361f13cced2369c0">close</a> (<a class="el" href="classlog4cxx_1_1helpers_1_1Pool.html">Pool</a> &amp;p) override</td></tr>
<tr class="separator:a7fa5ddc743533d6e361f13cced2369c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada1a829df66ab5c0a70bc2390de288d0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1SocketOutputStream.html#ada1a829df66ab5c0a70bc2390de288d0">flush</a> (<a class="el" href="classlog4cxx_1_1helpers_1_1Pool.html">Pool</a> &amp;p) override</td></tr>
<tr class="separator:ada1a829df66ab5c0a70bc2390de288d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7d118a9e2df48317cec96659df993f8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1SocketOutputStream.html#ad7d118a9e2df48317cec96659df993f8">write</a> (<a class="el" href="classlog4cxx_1_1helpers_1_1ByteBuffer.html">ByteBuffer</a> &amp;buf, <a class="el" href="classlog4cxx_1_1helpers_1_1Pool.html">Pool</a> &amp;p) override</td></tr>
<tr class="separator:ad7d118a9e2df48317cec96659df993f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3a4d5c001de5962fd49d42a478c38eb"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1OutputStream.html#af3a4d5c001de5962fd49d42a478c38eb">close</a> (<a class="el" href="classlog4cxx_1_1helpers_1_1Pool.html">Pool</a> &amp;p)=0</td></tr>
<tr class="separator:af3a4d5c001de5962fd49d42a478c38eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a254fb94920829d3399c7c0e570c75a6f"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1OutputStream.html#a254fb94920829d3399c7c0e570c75a6f">flush</a> (<a class="el" href="classlog4cxx_1_1helpers_1_1Pool.html">Pool</a> &amp;p)=0</td></tr>
<tr class="separator:a254fb94920829d3399c7c0e570c75a6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a8bbe944f27becf2ddda0a8320cc42a"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1OutputStream.html#a5a8bbe944f27becf2ddda0a8320cc42a">write</a> (<a class="el" href="classlog4cxx_1_1helpers_1_1ByteBuffer.html">ByteBuffer</a> &amp;buf, <a class="el" href="classlog4cxx_1_1helpers_1_1Pool.html">Pool</a> &amp;p)=0</td></tr>
<tr class="separator:a5a8bbe944f27becf2ddda0a8320cc42a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classlog4cxx_1_1helpers_1_1Object"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classlog4cxx_1_1helpers_1_1Object')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classlog4cxx_1_1helpers_1_1Object.html">log4cxx::helpers::Object</a></td></tr>
<tr class="memitem:a8ba23411233a652fac44a619e6356115 inherit pub_methods_classlog4cxx_1_1helpers_1_1Object"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1Object.html#a8ba23411233a652fac44a619e6356115">~Object</a> ()</td></tr>
<tr class="separator:a8ba23411233a652fac44a619e6356115 inherit pub_methods_classlog4cxx_1_1helpers_1_1Object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a581992e532894891e83b9afd605ca492 inherit pub_methods_classlog4cxx_1_1helpers_1_1Object"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="classlog4cxx_1_1helpers_1_1Class.html">helpers::Class</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1Object.html#a581992e532894891e83b9afd605ca492">getClass</a> () const =0</td></tr>
<tr class="separator:a581992e532894891e83b9afd605ca492 inherit pub_methods_classlog4cxx_1_1helpers_1_1Object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9dac08272167c9af4c7d81e9e205a9de inherit pub_methods_classlog4cxx_1_1helpers_1_1Object"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1Object.html#a9dac08272167c9af4c7d81e9e205a9de">instanceof</a> (const <a class="el" href="classlog4cxx_1_1helpers_1_1Class.html">Class</a> &amp;clazz) const =0</td></tr>
<tr class="separator:a9dac08272167c9af4c7d81e9e205a9de inherit pub_methods_classlog4cxx_1_1helpers_1_1Object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92a4c098274758a7b989be642b495d55 inherit pub_methods_classlog4cxx_1_1helpers_1_1Object"><td class="memItemLeft" align="right" valign="top">virtual const void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1Object.html#a92a4c098274758a7b989be642b495d55">cast</a> (const <a class="el" href="classlog4cxx_1_1helpers_1_1Class.html">Class</a> &amp;clazz) const =0</td></tr>
<tr class="separator:a92a4c098274758a7b989be642b495d55 inherit pub_methods_classlog4cxx_1_1helpers_1_1Object"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_methods_classlog4cxx_1_1helpers_1_1OutputStream"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classlog4cxx_1_1helpers_1_1OutputStream')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="classlog4cxx_1_1helpers_1_1OutputStream.html">log4cxx::helpers::OutputStream</a></td></tr>
<tr class="memitem:a4ef70031050c7a9bad79ccd7ab6551dd inherit pro_methods_classlog4cxx_1_1helpers_1_1OutputStream"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1OutputStream.html#a4ef70031050c7a9bad79ccd7ab6551dd">OutputStream</a> ()</td></tr>
<tr class="separator:a4ef70031050c7a9bad79ccd7ab6551dd inherit pro_methods_classlog4cxx_1_1helpers_1_1OutputStream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d423eda83bc4fc09027ff9642351016 inherit pro_methods_classlog4cxx_1_1helpers_1_1OutputStream"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1OutputStream.html#a6d423eda83bc4fc09027ff9642351016">~OutputStream</a> ()</td></tr>
<tr class="separator:a6d423eda83bc4fc09027ff9642351016 inherit pro_methods_classlog4cxx_1_1helpers_1_1OutputStream"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a0ea15e617cc9c31d0ea2ad4837c71a9f" name="a0ea15e617cc9c31d0ea2ad4837c71a9f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0ea15e617cc9c31d0ea2ad4837c71a9f">&#9670;&#160;</a></span>SocketOutputStream()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">log4cxx::helpers::SocketOutputStream::SocketOutputStream </td>
<td>(</td>
<td class="paramtype">const SocketPtr &amp;&#160;</td>
<td class="paramname"><em>socket</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="ab4b1bf480e00ce08ade189a993de106a" name="ab4b1bf480e00ce08ade189a993de106a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab4b1bf480e00ce08ade189a993de106a">&#9670;&#160;</a></span>~SocketOutputStream()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">log4cxx::helpers::SocketOutputStream::~SocketOutputStream </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a7fa5ddc743533d6e361f13cced2369c0" name="a7fa5ddc743533d6e361f13cced2369c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7fa5ddc743533d6e361f13cced2369c0">&#9670;&#160;</a></span>close()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void log4cxx::helpers::SocketOutputStream::close </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classlog4cxx_1_1helpers_1_1Pool.html">Pool</a> &amp;&#160;</td>
<td class="paramname"><em>p</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Implements <a class="el" href="classlog4cxx_1_1helpers_1_1OutputStream.html#af3a4d5c001de5962fd49d42a478c38eb">log4cxx::helpers::OutputStream</a>.</p>
</div>
</div>
<a id="ada1a829df66ab5c0a70bc2390de288d0" name="ada1a829df66ab5c0a70bc2390de288d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada1a829df66ab5c0a70bc2390de288d0">&#9670;&#160;</a></span>flush()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void log4cxx::helpers::SocketOutputStream::flush </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classlog4cxx_1_1helpers_1_1Pool.html">Pool</a> &amp;&#160;</td>
<td class="paramname"><em>p</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Implements <a class="el" href="classlog4cxx_1_1helpers_1_1OutputStream.html#a254fb94920829d3399c7c0e570c75a6f">log4cxx::helpers::OutputStream</a>.</p>
</div>
</div>
<a id="ad7d118a9e2df48317cec96659df993f8" name="ad7d118a9e2df48317cec96659df993f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad7d118a9e2df48317cec96659df993f8">&#9670;&#160;</a></span>write()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void log4cxx::helpers::SocketOutputStream::write </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classlog4cxx_1_1helpers_1_1ByteBuffer.html">ByteBuffer</a> &amp;&#160;</td>
<td class="paramname"><em>buf</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classlog4cxx_1_1helpers_1_1Pool.html">Pool</a> &amp;&#160;</td>
<td class="paramname"><em>p</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Implements <a class="el" href="classlog4cxx_1_1helpers_1_1OutputStream.html#a5a8bbe944f27becf2ddda0a8320cc42a">log4cxx::helpers::OutputStream</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="socketoutputstream_8h_source.html">socketoutputstream.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.13-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespacelog4cxx.html">log4cxx</a></li><li class="navelem"><a class="el" href="namespacelog4cxx_1_1helpers.html">helpers</a></li><li class="navelem"><a class="el" href="classlog4cxx_1_1helpers_1_1SocketOutputStream.html">SocketOutputStream</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="https://www.doxygen.nl/images/doxygen.png" alt="Doxygen"/></a> 1.9.6 on Thu Jan 25 2024 </li>
<li class="center">
Copyright &copy; 2003-2023 <a href="https://www.apache.org/">Apache Software Foundation</a>. All Rights Reserved. <a href="https://privacy.apache.org/policies/privacy-policy-public.html">Privacy Policy</a><br/>
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, and the Apache Logging project logo are trademarks of The Apache Software Foundation.<br/>
</li>
</ul>
</div>
</body>
</html>