gear_packet.msg
来自「基于Oment++的无线传感器网络仿真」· MSG 代码 · 共 84 行
MSG
84 行
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 + =
减小字号Ctrl + -
显示快捷键?