blob: 51d65b03fb056353f04f8559584104aa2841d539 [file] [log] [blame]
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Inter-process/-system communication</title><meta name="generator" content="DocBook XSL Stylesheets V1.75.1"><link rel="home" href="index.html" title="Websh Reference 3.6.0b5"><link rel="up" href="index.html" title="Websh Reference 3.6.0b5"><link rel="prev" href="uri-html-_en-decoding.html" title="Uri-/html- en-/decoding"><link rel="next" href="apache_module_specific_commands.html" title="Apache module specific commands"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Inter-process/-system communication</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="uri-html-_en-decoding.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="apache_module_specific_commands.html">Next</a></td></tr></table><hr></div><div class="section" title="Inter-process/-system communication"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="inter-process_and_-system_communication"></a>Inter-process/-system communication</h2></div></div></div><p style="width:90%">
Sends to and receives from sockets.
</p><div class="section" title="web::send"><div class="titlepage"><div><div><h3 class="title"><a name="web::send"></a><span style="font-family:monospace"><span class="command"><strong>web::send</strong></span></span></h3></div></div></div><p style="width:90%">
</p><div class="cmdsynopsis"><span style="background:#bbbbff"><span style="font-weight:bold"><code class="command">web::send</code></span> <em class="replaceable"><code>channel</code></em> <em class="replaceable"><code>cmdNr</code></em> <em class="replaceable"><code>message</code></em> ?<em class="replaceable"><code>flags</code></em>?</span></div><p style="width:90%">
Sends the command
<tt><em class="replaceable"><code>cmdNr</code></em></tt> and the
message <tt><em class="replaceable"><code>message</code></em></tt> to
channel
<tt><em class="replaceable"><code>channelName</code></em></tt> using
the flags
<tt><em class="replaceable"><code>flags</code></em></tt>. The command
numbers are application specific. If
<tt>#<em class="replaceable"><code>flags</code></em></tt> is used,
flags is the numeric (integer) representation of the flags is
to be set. If the # is omitted,
<tt><em class="replaceable"><code>flags</code></em></tt> is a list of
symbolic flags. Currently, there is only one flag:
<tt>multiple</tt> or <tt>noflush</tt> with the
same meaning, indicating that there is more to follow and no
automatic flush on the channel should be done.
</p></div><div class="section" title="web::recv"><div class="titlepage"><div><div><h3 class="title"><a name="web::recv"></a><span style="font-family:monospace"><span class="command"><strong>web::recv</strong></span></span></h3></div></div></div><p style="width:90%">
</p><div class="cmdsynopsis"><span style="background:#bbbbff"><span style="font-weight:bold"><code class="command">web::recv</code></span> <em class="replaceable"><code>channel</code></em> <em class="replaceable"><code>cmdVarName</code></em> <em class="replaceable"><code>msgVarName</code></em> <em class="replaceable"><code>flagVarName</code></em></span></div><p style="width:90%">
Receives a message from <tt>channelName</tt>. The
other arguments are the names of the corresponding variables
which will contain the message. The flags are returned
numeric. (To handle these flags, use the
<span style="font-family:monospace"><span class="command"><strong>web::msgflag</strong></span></span> function).
</p></div><div class="section" title="web::msgflag"><div class="titlepage"><div><div><h3 class="title"><a name="web::msgflag"></a><span style="font-family:monospace"><span class="command"><strong>web::msgflag</strong></span></span></h3></div></div></div><p style="width:90%">
</p><div class="cmdsynopsis"><span style="background:#bbbbff"><span style="font-weight:bold"><code class="command">web::msgflag</code></span> ?<em class="replaceable"><code>flags</code></em>? ?<em class="replaceable"><code>testflags</code></em>?</span></div><p style="width:90%">
Sets or tests flags.
</p><div class="variablelist"><dl><dt><span style="background:#bbbbff"><span class="term"><span style="font-family:monospace"><span class="command"><strong>web::msgflag</strong></span></span></span></span></dt><dd><div style="padding:4 ; margin-top:3 ; margin-bottom:3 ; width:75%"><div style="margin-bottom:6">
Returns a list of all known message flags.
</div></div></dd><dt><span style="background:#bbbbff"><span class="term"><span style="font-family:monospace"><span class="command"><strong>web::msgflag</strong></span></span>
<tt><em class="replaceable"><code>flags</code></em></tt></span></span></dt><dd><div style="padding:4 ; margin-top:3 ; margin-bottom:3 ; width:75%"><div style="margin-bottom:6">
Returns the integer representation of the flags listed
in <tt>flags</tt>.
</div></div></dd><dt><span style="background:#bbbbff"><span class="term"><span style="font-family:monospace"><span class="command"><strong>web::msgflag</strong></span></span>
<tt><em class="replaceable"><code>flags</code></em></tt>
<tt><em class="replaceable"><code>testflags</code></em></tt></span></span></dt><dd><div style="padding:4 ; margin-top:3 ; margin-bottom:3 ; width:75%"><div style="margin-bottom:6">
Returns 1, if the flags in <tt>testflags</tt>
are set in <tt>flags</tt>.
</div></div></dd></dl></div><p style="width:90%">
</p><p style="width:90%">
</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="uri-html-_en-decoding.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="apache_module_specific_commands.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Uri-/html- en-/decoding </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Apache module specific commands</td></tr></table></div></body></html>