📄 hello.java
字号:
/*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.msg;import java.net.*;import jpcap.*;import jadhoc.conf.*;import jadhoc.other.*;/*** This Class represents a HELLO message** @author : Asanga Udugama* @date : 28-aug-2003* @email : adu@comnets.uni-bremen.de**/public class HELLO extends RREP { public HELLO(ConfigInfo cfg, CurrentInfo cur, UDPPacket up, String iface) throws Exception { super (cfg, cur, up, iface); } public HELLO (ConfigInfo cfg, CurrentInfo cur) throws Exception { super(cfg, cur, true, cfg.ipAddressMulticastVal, (short) 1, false, false, (byte) 0, (byte) 0, cfg.ipAddressVal, cur.lastSeqNum, cfg.ipAddressVal, (cfg.allowedHelloLossVal * cfg.helloIntervalVal)); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -