|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>OpenClient++: D:/OpenClient++/Utils.h Source File</title>
<link href="../../doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.9.1 -->
<div class="qindex"> <form class="search" action="../../search.php" method="get">
<a class="qindex" href="../../index.html">Main Page</a> | <a class="qindex" href="../../classes.html">Alphabetical List</a> | <a class="qindex" href="../../annotated.html">Class List</a> | <a class="qindex" href="../../dirs.html">Directories</a> | <a class="qindex" href="../../files.html">File List</a> | <a class="qindex" href="../../functions.html">Class Members</a> | <a class="qindex" href="../../globals.html">File Members</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
<div class="nav">
<a class="el" href="../../dir_000000.html">D:</a> / <a class="el" href="../../dir_000001.html">OpenClient++</a></div>
<h1>Utils.h</h1><a href="../../d9/dc1/_utils_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="preprocessor">#ifndef _UTILS_H_</span>
00002 <span class="preprocessor"></span><span class="preprocessor">#define _UTILS_H_</span>
00003 <span class="preprocessor"></span>
00004 <span class="comment">// Untils.h</span>
00005 <span class="comment">// 09/14/2004</span>
00006 <span class="comment">// Rohit Joshi</span>
00007 <span class="comment">// Utility clases</span>
00009 <span class="comment"></span><span class="preprocessor">#include <string></span>
00010 <span class="preprocessor">#include <exception></span>
00011 <span class="preprocessor">#include <iostream></span>
00012 <span class="keyword">using</span> std::string;
00013 <span class="keyword">using</span> std::ostream;
00014 <span class="keyword">using</span> std::exception;
00015 <span class="comment">// Standard C header</span>
00016 <span class="preprocessor">#include <cstdarg></span>
00017
00018
00019 <span class="preprocessor">#ifdef WIN32</span>
00020 <span class="preprocessor"></span><span class="preprocessor"> #include <windows.h></span>
00021 <span class="preprocessor"> #include "<a class="code" href="../../d9/d79/_mutex_win_8h.html">MutexWin.h</a>"</span>
00022 <span class="preprocessor"> #define vsnprintf _vsnprintf</span>
00023 <span class="preprocessor"></span><span class="preprocessor">#else</span>
00024 <span class="preprocessor"></span><span class="preprocessor"> #include "<a class="code" href="../../da/d78/_mutex_8h.html">Mutex.h</a>"</span>
00025 <span class="preprocessor">#endif</span>
00026 <span class="preprocessor"></span>
00027 <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
00028 <span class="preprocessor">#include <ctpublic.h></span>
00029 }
00030
00031
00032
00033 <span class="comment">// Mutext</span>
<a name="l00034"></a><a class="code" href="../../d9/dc1/_utils_8h.html#a0">00034</a> <span class="preprocessor">#define LOG_INFO 0</span>
<a name="l00035"></a><a class="code" href="../../d9/dc1/_utils_8h.html#a1">00035</a> <span class="preprocessor"></span><span class="preprocessor">#define LOG_WARN 1</span>
<a name="l00036"></a><a class="code" href="../../d9/dc1/_utils_8h.html#a2">00036</a> <span class="preprocessor"></span><span class="preprocessor">#define LOG_ERROR 2</span>
00037 <span class="preprocessor"></span>
<a name="l00038"></a><a class="code" href="../../d9/dc1/_utils_8h.html#a3">00038</a> <span class="preprocessor">#define LOG(LOG_TYPE, MSG) \</span>
00039 <span class="preprocessor"> (LOG_TYPE == LOG_INFO ? (std::cout<< __FILE__<<"|"<<__FUNCTION__ << "|" << __LINE__ << "|GenInfo:" << MSG << std::endl) : \</span>
00040 <span class="preprocessor"> (LOG_TYPE == LOG_WARN ? (std::cout<< __FILE__<<"|"<<__FUNCTION__ << "|" << __LINE__ << "|GenWarn" << MSG << std::endl) : \</span>
00041 <span class="preprocessor"> std::cout<< __FILE__ << "|"<<__FUNCTION__ << "|" << __LINE__ << "|GenErr:" << MSG << std::endl))</span>
00042 <span class="preprocessor"></span>
00043
00044 <span class="comment">// CS Library callback msg handler</span>
00045 CS_RETCODE CS_PUBLIC
00046 <a class="code" href="../../d9/dc1/_utils_8h.html#a4">csmsg_callback</a>(CS_CONTEXT *context, CS_CLIENTMSG *emsgp);
00047
00048 <span class="comment">// CT Library callback msg handler</span>
00049 CS_RETCODE CS_PUBLIC
00050 <a class="code" href="../../d9/dc1/_utils_8h.html#a5">ctmsg_callback</a>(CS_CONTEXT *context,CS_CONNECTION *connection,CS_CLIENTMSG *errmsg);
00051 <span class="comment">// SRV library callback msg handler</span>
00052 CS_RETCODE CS_PUBLIC
00053 <a class="code" href="../../d9/dc1/_utils_8h.html#a6">servermsg_callback</a>(CS_CONTEXT *context,CS_CONNECTION *connection,CS_SERVERMSG *srvmsg);
00054 <span class="preprocessor">#endif // _UTILS_H_</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Nov 16 23:20:01 2004 for OpenClient++ by
<a href="http://www.doxygen.org/index.html">
<img src="../../doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
</body>
</html>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Rohit Joshi is a software engineer working for a telecom company in USA. He has development expirience using C, C++ ,C#, VoiceXML, ASR, IMAP, LDAP, HTTP, SIP, H323 on unix/linux and platforms.