⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 messages.msg

📁 In this implementation of AntNet-3.0 one could get the behavior of both algorithms through a simple
💻 MSG
字号:
//-------------------------------
// File: packet.msg
// This is a simple simulation program whose purpose is to
// understand how antnet works
//-------------------------------

enum netLayerPacketType
{
    NETLAYER_HELLO_PACKET = 0;
    NETLAYER_HELLO_REPLY_PACKET = 1;
    NETLAYER_LINK_STATE_PACKET = 2;
	NETLAYER_LINK_STATE_ACK_PACKET = 3;
    NETLAYER_DATA_PACKET = 4;
	NETLAYER_FORWARD_ANT = 5;
	NETLAYER_BACKWARD_ANT = 6;
};


message samplePacket
{
	fields:
		int sourceAddress = 0;
		int destAddress = 0;
		int hops = 0;
		bool hasPayLoad = false;
		string data;
};

message helloAndReplyMessage
{
	fields:
		int messageID = 0;
		int sourceAddress = -1;
		int neighborAddress = -1;

};


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -