routediscoveryentry.java

来自「UoB JADhoc is an AODV Implementation in 」· Java 代码 · 共 76 行

JAVA
76
字号
/*JAdhoc ver 0.11 - Java AODV (RFC 3561) Protocol HandlerCopyright 2003-2004 ComNets, University of BremenThis program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public Licenseas published by the Free Software Foundation; either version 2of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.*/package jadhoc.net;import java.net.*;import java.util.*;import jadhoc.msg.*;import jadhoc.conf.*;import jadhoc.other.*;import jadhoc.minders.*;/*** Objects of this class holds information ralated to a* route discovery that is in progress.** @author : Asanga Udugama* @date : 15-aug-2003* @email : adu@comnets.uni-bremen.de*/public class RouteDiscoveryEntry {	public ConfigInfo cfgInfo;	public CurrentInfo curInfo;	// Route discovery info	public InetAddress destIPAddr;	public RREQ rreq;	public DiscoveryMinder rdThread;	public LinkedList pktBuffer;	public int rreqRetries;	public int sleepTime;	/**	* Constructor to create a route discovery entry to be placed	* in the list.	* @param ConfigInfo cfg - config object	* @param CurrentInfo cur - current object	* @param InetAddress adr - Destination IP address for	*			which a route is being searched	* @param RREQ r - The RREQ sent	* @param RouteDiscoverer rd - The Route Discovery thread	*/	public RouteDiscoveryEntry(ConfigInfo cfg, CurrentInfo cur, InetAddress adr,					RREQ r, DiscoveryMinder rd, int st) {		cfgInfo = cfg;		curInfo = cur;		destIPAddr = adr;		rdThread = rd;		rreq = r;		pktBuffer = new LinkedList();		rreqRetries = 0;		sleepTime = st;	}}

⌨️ 快捷键说明

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