欢迎来到天天文库
浏览记录
ID:41654506
大小:75.50 KB
页数:42页
时间:2019-08-29
《八皇后问题C语言实现》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、*AHeartBeatreceiverinRSStoreceiveheart-beatfromeStations.IfaneStationdoesnot*sentoutheart-beatsthreeconsecutivetimes,theeStationwillberegardedasdead.Youcan*checkHeartBeatReceiver.txtforthefurtherinformation.**Mod币cationHistory:*#0002000-06-07PhantomFilecreate.*#0012000-06-19ViperForkprocesstodofirs
2、t-timeregistration*#0022000-06-22PhantomForshutdownsignalfromanyeStation*#0032000-06-28PhantomModifybecausecommunicationAPIchanged*#0042000-07-13ViperchangethepathofRSSFTRegister*#0052000-07-17PhantomCheckpotentialmemoryleak*#0062000-07-25PhantomChangetheeventnameandvalue*#0072000-07-31PhantomDebug
3、changeflag=ltoflag=0forredevent.*#0082000-08-01PhantomTopreventeidgreaterthan8*MAX_SIZE*#0092000-08-03ViperZombieByeBye*#0102000-08-03PhantomDebugforpotentialbugthatnowheretoresetinitreqbackto1ifinitreq=2.*#011events.2000-08-15PhantomPreventtoomanynetworkinaccess*#0122000-09-01ViperPreventRSSFTRegi
4、stergetwrongeidinelude#inelude#include#inelude#include#include#include#inelude#include#include/*#001*/#inelude#inelude#ineludeincludenRSS_MySQL.hnincludenR
5、SS_Receiver.hn#include,'ipTCommModule.h^,#include"HeartBeatReceiver.h"includenlib2ndAPI.hH/*#001begin*/#ifndefRSSFTRegister/*#004begin*///#defineRSSFTRegister(“./RSSFTRegister")#defineRSSFTRegister("/opt/iptrend/RSS/bin/RSSFTRegister")/*#004end*/#endif/*#001end7unsignedcharbeatO[MAX_SIZE];unsignedc
6、harbeatl[MAX_SIZE];unsignedcharbeat3[MAX_SIZE];unsignedcharbeat4[MAX_SIZE];unsignedcharbeat5[MAX_SIZE];intflipflag=0;intfirstcheck=1;structtimebstart,end;staticpthread_attr_tattr;voidsetBit(unsignedcharbeat[MAX_SIZE],intindex,intoffset)if(index>=MAX_SIZE)//#008return;switch(offset){case0:beat[index
7、]=beat[index]
8、0x01;break;case1:beat[index]=beat[index]
9、0x02;break;case2:beat[index]=beat[index]
10、0x04;break;case3:beat[index]=beat[index]
11、0x08;break;case4:beat[index]=beat[index]
12、0x10;break;beatfindex]=beatf
此文档下载收益归作者所有