open-source-search-engine/Msg3e.h

45 lines
778 B
C
Raw Normal View History

2013-08-03 00:12:24 +04:00
// . This message class determines if the parms have changed
// while a host is down, and resyncs them if they have
#ifndef _MSG3E_H_
#define _MSG3E_H_
#include "UdpServer.h" // for sending/handling requests
#include "Parms.h"
class Msg3e {
public:
// register our 0x3f handler function
bool registerHandler ( );
// see if parms have changed
void checkForNewParms ( );
// send checksum to host
void sendChecksum( Host *h );
// send parms to host
bool sendParms( Host *h );
// public so C wrapper can call
void gotReply ( ) ;
// callback information
void *m_state ;
void (* m_callback)(void *state );
// request buffer is just 4 bytes
char m_request[ 4 ];
char *m_reply;
2014-11-11 01:45:11 +03:00
int32_t m_replySize;
2013-08-03 00:12:24 +04:00
char m_goodReply;
2014-11-11 01:45:11 +03:00
int32_t m_errno;
2013-08-03 00:12:24 +04:00
};
#endif