<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>liblogging: config.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.3.2 --> <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div> <h1>config.h</h1><a href="config_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 00045 <span class="preprocessor">#ifndef __LIB3195_CONFIG_H_INCLUDED__</span> 00046 <span class="preprocessor"></span><span class="preprocessor">#define __LIB3195_CONFIG_H_INCLUDED__ 1</span> 00047 <span class="preprocessor"></span> 00048 <span class="preprocessor">#include <stdio.h></span> 00049 <span class="preprocessor">#include <stdlib.h></span> 00050 <span class="preprocessor">#include <string.h></span> 00051 <a name="l00056"></a><a class="code" href="config_8h.html#a1">00056</a> <span class="preprocessor">#define BEEP_DEFAULT_WINDOWSIZE 4096</span> 00057 <span class="preprocessor"></span> <a name="l00061"></a><a class="code" href="config_8h.html#a2">00061</a> <span class="preprocessor">#define BEEPFRAMEMAX BEEP_DEFAULT_WINDOWSIZE</span> 00062 <span class="preprocessor"></span> <a name="l00072"></a><a class="code" href="config_8h.html#a3">00072</a> <span class="preprocessor">#define SOCKETMAXINBUFSIZE BEEP_DEFAULT_WINDOWSIZE</span> 00073 <span class="preprocessor"></span> 00074 <a name="l00087"></a><a class="code" href="config_8h.html#a4">00087</a> <span class="preprocessor">#define STRINGBUF_ALLOC_INCREMENT 1024</span> 00088 <span class="preprocessor"></span> <a name="l00106"></a><a class="code" href="config_8h.html#a5">00106</a> <span class="preprocessor">#define STRINGBUF_TRIM_ALLOCSIZE 0</span> 00107 <span class="preprocessor"></span> <a name="l00112"></a><a class="code" href="config_8h.html#a6">00112</a> <span class="preprocessor">#define DEBUGLEVEL 1</span> 00113 <span class="preprocessor"></span> <a name="l00130"></a><a class="code" href="config_8h.html#a7">00130</a> <span class="preprocessor">#define SECURITY_PEER_ERRREPORT_LEVEL 1</span> 00131 <span class="preprocessor"></span> 00132 <span class="comment">/* ######################################################################### *</span> 00133 <span class="comment"> * # Feature Select Macros - these macros turn library features on or off. # *</span> 00134 <span class="comment"> * # The library modules have been choosen with care so that in most cases # *</span> 00135 <span class="comment"> * # only those code & data actually needed is linked into the program. # *</span> 00136 <span class="comment"> * # However, there are some instances where code is only needed for spe- # *</span> 00137 <span class="comment"> * # cific features and if such features are not used can be removed. Such # *</span> 00138 <span class="comment"> * # fine-tuning can be done with the below macros. We highly suggest to # *</span> 00139 <span class="comment"> * # change settings only if you EXACTLY know WHAT your are doing AND WHY # *</span> 00140 <span class="comment"> * # you are doing it - otherwise, you'll most probably end up with linker # *</span> 00141 <span class="comment"> * # errors at least... # *</span> 00142 <span class="comment"> * # # *</span> 00143 <span class="comment"> * # In general, a feature is enabled if it is defined to 1 and disabled # *</span> 00144 <span class="comment"> * # if it is set to 0. # *</span> 00145 <span class="comment"> * ######################################################################### */</span> 00146 <a name="l00150"></a><a class="code" href="config_8h.html#a8">00150</a> <span class="preprocessor">#define FEATURE_LISTENER 1</span> 00151 <span class="preprocessor"></span> <a name="l00155"></a><a class="code" href="config_8h.html#a9">00155</a> <span class="preprocessor">#define FEATURE_UDP 1</span> 00156 <span class="preprocessor"></span> <a name="l00160"></a><a class="code" href="config_8h.html#a10">00160</a> <span class="preprocessor">#define FEATURE_UNIX_DOMAIN_SOCKETS 1</span> 00161 <span class="preprocessor"></span> <a name="l00168"></a><a class="code" href="config_8h.html#a11">00168</a> <span class="preprocessor">#define FEATURE_COOKED 1</span> 00169 <span class="preprocessor"></span> <a name="l00177"></a><a class="code" href="config_8h.html#a12">00177</a> <span class="preprocessor">#define FEATURE_MSGAPI 1</span> 00178 <span class="preprocessor"></span> 00179 <span class="comment">/* ######################################################################### *</span> 00180 <span class="comment"> * # PORTABILITY MACROS FROM HERE ON # *</span> 00181 <span class="comment"> * ######################################################################### */</span> 00182 00183 <span class="comment">/* As it looks, different compilers have different predefined</span> 00184 <span class="comment"> * defines for the OS environment. Not really nice :-(</span> 00185 <span class="comment"> * So we define our own OS defines and use them consistently.</span> 00186 <span class="comment"> */</span> 00187 <span class="preprocessor">#ifdef WIN32</span> 00188 <span class="preprocessor"></span><span class="preprocessor"># define SROS_WIN32</span> 00189 <span class="preprocessor"></span><span class="preprocessor">#endif</span> 00190 <span class="preprocessor"></span> 00191 <span class="preprocessor">#ifdef __win32</span> 00192 <span class="preprocessor"></span><span class="preprocessor"># define SROS_WIN32</span> 00193 <span class="preprocessor"></span><span class="preprocessor">#endif</span> 00194 <span class="preprocessor"></span> 00195 <span class="preprocessor">#ifdef SROS_Solaris_</span> 00196 <span class="preprocessor"></span><span class="preprocessor"># define SROS_Solaris</span> 00197 <span class="preprocessor"></span><span class="preprocessor">#endif</span> 00198 <span class="preprocessor"></span> 00199 00200 <span class="comment">/* ######################################################################### *</span> 00201 <span class="comment"> * # Now all environment defines are made, so let's get down to the meat ;)# *</span> 00202 <span class="comment"> * ######################################################################### */</span> 00203 00204 <span class="preprocessor">#ifndef TRUE</span> 00205 <span class="preprocessor"></span><span class="preprocessor"># define TRUE 1</span> 00206 <span class="preprocessor"></span><span class="preprocessor"># define FALSE 0</span> 00207 <span class="preprocessor"></span><span class="preprocessor">#endif</span> 00208 <span class="preprocessor"></span> 00209 <span class="preprocessor">#ifdef SROS_WIN32</span> 00210 <span class="preprocessor"></span><span class="preprocessor"># define SLEEP(x) Sleep(x)</span> 00211 <span class="preprocessor"></span><span class="preprocessor"># define SR_SOCKET SOCKET</span> 00212 <span class="preprocessor"></span><span class="preprocessor"># define SNPRINTF _snprintf</span> 00213 <span class="preprocessor"></span> <span class="comment">/* for obvious reasons, we define FEATURE_UNIX_DOMAIN_SOCKETS to 0 under win32... */</span> 00214 <span class="preprocessor"># undef FEATURE_UNIX_DOMAIN_SOCKETS</span> 00215 <span class="preprocessor"></span><span class="preprocessor"># define FEATURE_UNIX_DOMAIN_SOCKETS 0</span> 00216 <span class="preprocessor"></span><span class="preprocessor">#else</span> 00217 <span class="preprocessor"></span><span class="preprocessor"># define SLEEP(x) sleep(x)</span> 00218 <span class="preprocessor"></span><span class="preprocessor"># define SR_SOCKET int</span> <a name="l00219"></a><a class="code" href="config_8h.html#a17">00219</a> <span class="preprocessor"></span><span class="preprocessor"># define INVALID_SOCKET 0 </span> 00220 <span class="preprocessor"># define SNPRINTF snprintf</span> 00221 <span class="preprocessor"></span><span class="preprocessor">#endif</span> 00222 <span class="preprocessor"></span> 00223 00224 <span class="comment">/* ######################################################################### *</span> 00225 <span class="comment"> * # END PORTABILITY MACROS # *</span> 00226 <span class="comment"> * ######################################################################### */</span> 00227 00228 <span class="preprocessor">#endif</span> </pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Oct 3 12:29:55 2005 for liblogging by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.2 </small></address> </body> </html>