emulatorarpdata.java
来自「source code for fishnet」· Java 代码 · 共 39 行
JAVA
39 行
import java.net.InetAddress;/** * <pre> * Structure for storing data contained in the ARP cache of an emulated node * </pre> */public class EmulatorARPData { private InetAddress ipAddress; private int port; /** * Create a new structure * @param ipAddress The IP address of a neighboring node * @param port The port used by the neighboring node for communications */ public EmulatorARPData(InetAddress ipAddress, int port) { this.ipAddress = ipAddress; this.port = port; } /** * Get the IP address * @return The IP address */ public InetAddress getIPAddress() { return this.ipAddress; } /** * Get the port * @return The port */ public int getPort() { return this.port; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?