open-source-search-engine/Msg30.h

37 lines
797 B
C
Raw Normal View History

2013-08-03 00:12:24 +04:00
// Copyright Matt Wells Jun 2002
// . call g_collectiondb.reloadList(), resets m_lastTimes in spiderLoop to 0's
// . this will cause it to reset m_startKeys to 0
#ifndef _MSG30_H_
#define _MSG30_H_
//#include "CollectionRec.h"
2013-08-03 00:12:24 +04:00
class Msg30 {
public:
bool registerHandler();
// . send an updated collection rec to ALL hosts
// . returns false if blocked, true otherwise
// . sets errno on error
bool update ( CollectionRec *rec ,
bool deleteIt ,
void *state ,
void (* callback)(void *state ) );
// leave public for wrappers to call
void *m_state ;
void (* m_callback)(void *state ) ;
2014-11-11 01:45:11 +03:00
int32_t m_requests;
int32_t m_replies;
2013-08-03 00:12:24 +04:00
char m_sendBuf [ sizeof(CollectionRec) ];
2014-11-11 01:45:11 +03:00
int32_t m_sendBufSize;
2013-08-03 00:12:24 +04:00
};
#endif