📄 emulatorarpdata.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -