src/shepp/SheppGlobal.H

Go to the documentation of this file.
00001 /* ${copyright}$ */
00002 /* $Id: SheppGlobal.H 874 2007-03-05 18:44:48Z eduardo $ */
00006 #ifndef __SHEPP_GLOBAL_H__
00007 #define __SHEPP_GLOBAL_H__
00008 
00009 #include <string>
00010 #include <memory>
00011 
00012 #include "libepp_nicbr.H"
00013 #include "Session.H"
00014 
00015 #include "SheppCommand.H"
00016 
00017 #define SHEPP_VERSION  "1.4"
00018 #define DEFAULT_PORT   3121
00019 #define CLIENT_PEM     SSLCERTDIR "/client.pem"
00020 #define ROOT_PEM       SSLCERTDIR "/root.pem"
00021 
00022 // Maximmum length a single input word can have
00023 #define MAX_WORD_LENGTH  512
00024 #define MAX_TERM_DEV_LINE_SIZE 4096
00025 
00026 #include <list>
00027 
00028 using std::list;
00029 using std::string;
00030 using std::auto_ptr;
00031 
00032 LIBEPP_NICBR_NS_USE
00033 
00035 list<SheppCommand> _commands;
00036 
00038 string _server     = "localhost";
00039 int    _port       = DEFAULT_PORT;
00040 string _user       = "test";
00041 string _passphrase = "client passphrase";
00042 string _client_pem = CLIENT_PEM;
00043 string _root_pem   = ROOT_PEM;      
00044 bool   _connected  = false;
00045 
00046 string _login_pw     = "";
00047 string _login_new_pw = "";
00048 bool   _new_pw       = false;
00049 string _lang         = "";
00050 
00051 bool   _beauty     = true;
00052 bool   _debug      = false;
00053 bool   _autorsp    = true;
00054 
00055 bool   _keepalive  = false;
00056 bool   _ka_running = false;
00057 bool   _cmd_running= false;
00058 static int _keepalive_timer = 180;
00059 
00060 bool   _peer_crt_check = false;
00061 
00062 string _xmlrsp = "";
00063 string _xmlcmd = "";
00064 
00066 auto_ptr<Session> _session;
00067 
00068 #endif //__SHEPP_GLOBAL_H__

Generated on Tue Mar 20 13:02:18 2007 for libepp_nicbr by  doxygen 1.4.7