pingreplyevent.java

来自「Java p2p程序设计2002年版」· Java 代码 · 共 27 行

JAVA
27 行
字号
package net.jxta.impl.shell.bin.ping;import java.util.*;/** * Extends PingEvent to include the first leg differential as a message component. */public class PingReplyEvent extends PingEvent {        long time = 0;        public PingReplyEvent(Object source, long diff, long otime, long atime, String name) {        super(source,name,otime,atime);        this.time = diff;    }           /**     * @return Returns the time differential between the sender     * and receiver of the previous leg of a ping.     */    public long getPriorDifferential() {        return time;    }    }

⌨️ 快捷键说明

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