📄 keepalive.java
字号:
// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: OpenCHAT.java
import java.io.PrintStream;
class keepAlive
implements Runnable
{
keepAlive(User User)
{
active = true;
this.User = User;
}
public void run()
{
while(active)
try
{
doPing();
Thread.sleep(20000L);
}
catch(Exception e) { }
}
boolean doPing()
{
if(System.currentTimeMillis() - User.lastTime > 20000L)
{
User.ps.print(" ");
if(User.ps.checkError())
{
User.logout();
return false;
}
User.lastTime = System.currentTimeMillis();
}
return true;
}
void stop()
{
active = false;
}
private User User;
private boolean active;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -