28 #ifndef __CAINFOSERVICE__
29 #define __CAINFOSERVICE__
30 #if !defined ONLY_LOCAL_PROXY
38 #if !defined ONLY_LOCAL_PROXY || defined INCLUDE_MIDDLE_MIX
43 #define NR_REQUEST_TYPES 2
44 #define REQUEST_TYPE_POST 0
45 #define REQUEST_TYPE_GET 1
47 #define NR_REQUEST_COMMANDS 7
48 #define REQUEST_COMMAND_CONFIGURE 0
49 #define REQUEST_COMMAND_HELO 1
50 #define REQUEST_COMMAND_MIXINFO 2
51 #define REQUEST_COMMAND_DYNACASCADE 3
52 #define REQUEST_COMMAND_CASCADE 4
53 #define REQUEST_COMMAND_STATUS 5
54 #define REQUEST_COMMAND_TNC_DATA 6
56 #define ATTRIBUTE_SERIAL "serial"
58 #define LOCALE_DEFAULT LOCALE_EN
59 #define LOCALE_EN "en"
97 #if !defined ONLY_LOCAL_PROXY
115 SINT32 dynamicCascadeConfiguration();
116 bool newCascadeAvailable();
CAThread * m_pthreadRunLoop
CAConditionVariable * m_pLoopCV
SINT32 getPaymentInstance(const UINT8 *a_pstrPIID, CAXMLBI **pXMLBI, CASocketAddrINet *a_socketAddress)
Gets a payment instance from the InfoService.
SINT32 sendHelo(UINT8 *a_strXML, UINT32 a_len, THREAD_RETURN(*a_thread)(void *), UINT8 *a_strThreadName, SINT32 requestCommand, const UINT8 *param=NULL)
SINT32 setMultiSignature(CAMultiSignature *pMultiSignature)
UINT8 * getMixHeloXMLAsString(UINT32 &len)
static const UINT32 REPEAT_ON_STATUS_SENT_ERROR
static THREAD_RETURN TCascadeStatus(void *p)
SINT32 getMixedPackets(UINT64 &ppackets)
void setConfiguring(bool a_configuring)
SINT32 sendStatus(bool bIncludeCerts)
static const UINT64 SEND_STATUS_INFO_WAIT
CAMultiSignature * m_pMultiSignature
SINT32 sendMixHelo(SINT32 requestCommand=-1, const UINT8 *param=NULL)
SINT32 m_expectedMixRelPos
static const UINT64 SEND_MIX_INFO_WAIT
static const UINT64 SEND_LOOP_SLEEP
UINT8 * getStatusXMLAsString(bool bIncludeCerts, UINT32 &len)
UINT64 m_lastMixedPackets
static const UINT32 SEND_INFO_TIMEOUT_MS
UINT8 ** getOperatorTnCsAsStrings(UINT32 **lengths, UINT32 *nrOfTnCs)
POSTs the MIXINFO message for a mix to the InfoService.
static const UINT64 MINUTE
void setSerial(UINT64 a_serial)
SINT32 sendOperatorTnCData()
SINT32 getLevel(SINT32 *puser, SINT32 *prisk, SINT32 *ptraffic)
static THREAD_RETURN TCascadeHelo(void *p)
UINT8 * xmlDocToStringWithSignature(DOMNode *a_node, UINT32 &a_len, bool bIncludeCerts)
UINT8 * getCascadeHeloXMLAsString(UINT32 &len)
static THREAD_RETURN TMixHelo(void *p)
static const UINT64 SEND_CASCADE_INFO_WAIT
SINT32 handleConfigEvent(XERCES_CPP_NAMESPACE::DOMDocument *doc) const
static THREAD_RETURN InfoLoop(void *p)
This class represents a socket address for Internet (IP) connections.