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

📄 新建 文本文档.txt

📁 一个简单的基于静态路由表的最佳路由过程
💻 TXT
字号:
/*if(strcmp(msg->name(),"linknode")==0)
			{
				//processGreyRequest(msg);
				int amhead=(int)this->parentModule()->par("ISHEAD");
				if(amhead==1)
					{
							cMessage *newmsg = new cMessage("handyouaddress");
	            newmsg->setKind(M_HIGHLOW);								
	            newmsg->addPar("senderPX")=this->parentModule()->par("PX");
	            newmsg->addPar("senderPY")=this->parentModule()->par("PY");
	            newmsg->addPar("senderGX")=this->parentModule()->par("GX");
	            newmsg->addPar("senderGY")=this->parentModule()->par("GY");
	            newmsg->addPar("senderId")=ID;								
	            send(newmsg,"lowergate_out");					
					}
					delete msg;
				break;
			}
			if(strcmp(msg->name(),"handyouaddress")==0)
				{
				     int amhead=(int)this->parentModule()->par("ISHEAD");
				     int amaddred=(int)this->parentModule()->par("ISADDRED");
				     if(amhead==0&&amaddred==0)
					{
						 this->parentModule()->par("ISADDRED")=1;
						 UPDATECOLOR(3);							 
					}
					  delete msg;				
					break;
				}		
                else
		    {	
			      ev << "unknown message received from another node.\n";
		        endSimulation();
		    }*/

⌨️ 快捷键说明

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