📄 rcagent.h
字号:
/* -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- *//* * Copyright (c) Xerox Corporation 1997. All rights reserved. * * License is granted to copy, to use, and to make and to use derivative * works for research and evaluation purposes, provided that Xerox is * acknowledged in all documentation pertaining to any such copy or derivative * work. Xerox grants no other licenses expressed or implied. The Xerox trade * name should not be used in any advertising without its written permission. * * XEROX CORPORATION MAKES NO REPRESENTATIONS CONCERNING EITHER THE * MERCHANTABILITY OF THIS SOFTWARE OR THE SUITABILITY OF THIS SOFTWARE * FOR ANY PARTICULAR PURPOSE. The software is provided "as is" without * express or implied warranty of any kind. * * These notices must be retained in any copies of any part of this software. * * @(#) $Header: /var/cvs/sensnet.ns-2/mit/rca/rcagent.h,v 1.1.1.1 1999/06/09 14:43:19 hari Exp $ (Xerox) */#ifndef ns_rca_h#define ns_rca_h#include <object.h>#include <agent.h>#include <trace.h>#include <packet.h>#include <priqueue.h>#include <mac.h>#include "agent.h"#include "app.h"#define SAMPLERATE 8000#define ADV 0#define REQ 1#define DATA 2#define RESEND 3class RCAgent : public Agent {public: RCAgent(); ~RCAgent(); void sendmsg(int data_size, const char* meta_data, int destination, int sendto); void recv(Packet*, Handler*); void log(const char *msg); int command(int argc, const char*const* argv);protected: int packetMsg_; int packetSize_;private: NsObject *ll; // our link layer object Mac *mac; // our MAC layer object Trace *log_target; // log target};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -