📄 gear_packet.msg
字号:
struct location{ fields: int x; int y;}struct Header{ fields: location srcLoc; // Forwarder Location unsigned int srcNodeId; // Source NodeId unsigned short ttl; // Time-to-live location destLoc; // Ultimate destination unsigned int NextHopDestId; //NextHop NodeId int arr_vistNodeList[50]; int OriginSrc;};message BeaconPkt{ fields: Header hdr;}message BeaconReplyPkt{ fields: Header hdr; double energy;}message QueryPacket{ fields: Header hdr; int RegionX; int RegionY; int radius; //done using addPar now //int QryId; //The Duration for which data needs to be send double iDuration; //Rate at which data needs to eb send int iRate; int iQuerySrc; bool exp;}message ExpDataMsg{ fields: Header hdr; int iQuerySrcId; int iExpDataSrcId;}message GearPacket{ fields: Header hdr; }message DataMsg{ fields: Header hdr; //done using addPar //int QueryId; int RegionX; int RegionY; int Radius; bool Exploratory; int iFinalDest; double Duration; int Rate; double LastEnforcedTime; double TimeDataFirstSent;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -