R. Lo Cigno, P. Larcheri 802.11e closed-loop scheduling Description: ns-2 package for 802.11e clo

源代码在线查看: message.cc

软件大小: 9951 K
上传用户: C69222090
关键词: 802.11 R. P. Description
下载地址: 免注册下载 普通下载 VIP

相关代码

				// 				// message.cc    : Message and Filters' factories				// authors       : Fabio Silva				//				// Copyright (C) 2000-2001 by the Unversity of Southern California				// $Id: message.cc,v 1.4 2002/05/29 21:58:13 haldar Exp $				//				// This program is free software; you can redistribute it and/or				// modify it under the terms of the GNU General Public License,				// version 2, as published by the Free Software Foundation.				//				// This program is distributed in the hope that it will be useful,				// but WITHOUT ANY WARRANTY; without even the implied warranty of				// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the				// GNU General Public License for more details.				//				// You should have received a copy of the GNU General Public License along				// with this program; if not, write to the Free Software Foundation, Inc.,				// 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.				//				//								#include "message.hh"								NRSimpleAttributeFactory ControlMsgAttr(CONTROL_MESSAGE_KEY,										NRAttribute::BLOB_TYPE);				NRSimpleAttributeFactory OriginalHdrAttr(ORIGINAL_HEADER_KEY,										 NRAttribute::BLOB_TYPE);								Message * CopyMessage(Message *msg)				{				   Message *newMsg;								   newMsg = new Message(msg->version_, msg->msg_type_, msg->source_port_,							msg->data_len_, msg->num_attr_, msg->pkt_num_,							msg->rdm_id_, msg->next_hop_, msg->last_hop_);								   newMsg->new_message_ = msg->new_message_;				   newMsg->next_port_ = msg->next_port_;				   newMsg->msg_attr_vec_ = CopyAttrs(msg->msg_attr_vec_);								   return newMsg;				}							

相关资源