1 #ifndef __CONFIG_THREAD_H__
2 #define __CONFIG_THREAD_H__
5 #include <openssl/blowfish.h>
19 CONFIG_THREAD(ADMINS * , TARIFFS * t, USERS * u, const SETTINGS * s);
20 CONFIG_THREAD(const CONFIG_THREAD & rvalue);
26 void SetConnection(int sock, struct sockaddr_in sin);
29 enum {ST_NOOP, ST_OK, ST_ERROR};
33 struct sockaddr_in remoteAddr;
36 uint16_t versionMinor;
37 uint16_t versionMajor;
50 const SETTINGS * settings;
51 const ADMIN * currAdmin;
53 mutable boost::mutex mutex;
55 bool ReadBlock(void * dest, size_t & size, int timeout) const;
56 bool WriteBlock(const void * source, size_t & size, int timeout) const;
60 void WriteResp() const;
61 //void MakeErrorXML();
63 bool CheckLogin(const std::string & login, std::string & password);
65 void SendData() const;
67 static void TagBegin(void * userData, const char * name, const char ** attr);
68 static void TagEnd(void * userData, const char * name);
71 CONFIG_THREAD & operator=(const CONFIG_THREAD & rvalue);