appConfig_8h-source.html
5.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>xmlrpc: include/appConfig.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.8 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main Page</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
<h1>include/appConfig.h</h1><a href="appConfig_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __APP_CONFIG_H__</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __APP_CONFIG_H__</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a><a class="code" href="appConfig_8h.html#f77ed3e65a7b1a9341603d152a1404df">00004</a> <span class="preprocessor">#define MAXPENDING 10 </span><span class="comment">/* Maximum outstanding connection requests */</span>
<a name="l00005"></a><a class="code" href="appConfig_8h.html#ce5c08f66edfc6ae44edaeef6b6101b6">00005</a> <span class="preprocessor">#define MAXCLIENTS 1000 </span><span class="comment">/* Maximum connection handled in paralell */</span>
<a name="l00006"></a><a class="code" href="appConfig_8h.html#a0534241791f23ec8098503582406166">00006</a> <span class="preprocessor">#define READBUFSIZE 2048 </span><span class="comment">/* Size of receive buffer */</span>
<a name="l00007"></a><a class="code" href="appConfig_8h.html#3db4dba8d56385b62759b89c98cae447">00007</a> <span class="preprocessor">#define DEFAULTPORT 8801 </span><span class="comment">/* default port for service */</span>
<a name="l00008"></a><a class="code" href="appConfig_8h.html#0672e2d34f3bbe2f6cdad6f307b9d1cf">00008</a> <span class="preprocessor">#define DEFAULTPATH "logfiles"</span>
<a name="l00009"></a><a class="code" href="appConfig_8h.html#9a98b2d0f973e357020c1274ec5b56c0">00009</a> <span class="preprocessor"></span><span class="preprocessor">#define LOGNAMEPATTERN "log-%Y-%m-%d_%Hh"</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#undef MAX</span>
<a name="l00012"></a><a class="code" href="appConfig_8h.html#acc3ee1a7f283f8ef65cea31f4436a95">00012</a> <span class="preprocessor"></span><span class="preprocessor">#define MAX(x,y) ((x) > (y) ? (x) : (y))</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span>
<a name="l00014"></a>00014 <span class="preprocessor">#undef MIN</span>
<a name="l00015"></a><a class="code" href="appConfig_8h.html#74e75242132eaabbc1c512488a135926">00015</a> <span class="preprocessor"></span><span class="preprocessor">#define MIN(x,y) ((x) < (y) ? (x) : (y))</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a><a class="code" href="structtAppConfig.html">00017</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
<a name="l00018"></a><a class="code" href="structtAppConfig.html#9a20fbb501c68675f88764f1dcb42684">00018</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="client_8h.html#0b2caeb4b6f130be43e5a2f0267dd453">verbose</a>;
<a name="l00019"></a><a class="code" href="structtAppConfig.html#d5d5f9bd2f4f0dd2cd259e50c4d149bf">00019</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> doDaemon;
<a name="l00020"></a><a class="code" href="structtAppConfig.html#1bef5de806f77de1c307062e9fa84e4f">00020</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> maxPending;
<a name="l00021"></a><a class="code" href="structtAppConfig.html#3e4960a8eb8e1eac506bd651453faecc">00021</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> port;
<a name="l00022"></a><a class="code" href="structtAppConfig.html#1b87fb5e17055c70a233387374d8342e">00022</a> <span class="keywordtype">char</span> logPath[513];
<a name="l00023"></a><a class="code" href="structtAppConfig.html#58b889074da91d9de3ef14aa34f97795">00023</a> <span class="keywordtype">char</span> namePat[513];
<a name="l00024"></a>00024 } <a class="code" href="structtAppConfig.html">tAppConfig</a>;
<a name="l00025"></a>00025
<a name="l00026"></a>00026 <span class="keywordtype">int</span>
<a name="l00027"></a>00027 <a class="code" href="appConfig_8h.html#3755d793d10d6e5793ed5086a0b22964">handleCmdLine</a>(<a class="code" href="structtAppConfig.html">tAppConfig</a> * config, <span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *argv[]);
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="preprocessor">#endif // __APP_CONFIG_H__</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Oct 10 01:24:35 2010 for xmlrpc by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>