1 // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
2 // Jad home page: http://www.kpdus.com/jad.html
3 // Decompiler options: packimports(3) fieldsfirst nonlb space
7 import java.io.IOException;
8 import java.io.PrintStream;
9 import javax.swing.JFrame;
10 import javax.swing.JOptionPane;
12 // Referenced classes of package mcsClient:
15 public class KeepAlive
18 private McsTcpConnection mcsTcpConnection;
19 private int keepaliveMessage[];
20 private boolean blueScreenDump;
22 public KeepAlive(McsTcpConnection mcstcpconnection, boolean flag) {
23 keepaliveMessage = new int[3];
24 mcsTcpConnection = mcstcpconnection;
25 blueScreenDump = flag;
26 keepaliveMessage[0] = keepaliveMessage.length * 4;
27 keepaliveMessage[1] = 12;
30 private void cleanupThread() {
31 mcsTcpConnection = null;
34 private void process() {
36 Thread.currentThread();
37 if (Thread.interrupted())
40 Thread.currentThread();
43 catch (InterruptedException interruptedexception) {
46 keepaliveMessage[2] = (int)System.currentTimeMillis();
48 mcsTcpConnection.sendMessage(keepaliveMessage);
50 catch (IOException ioexception) {
51 System.err.println(ioexception.toString() + " - KeepAlive exiting");
53 JOptionPane.showMessageDialog(new JFrame(), "Connection to host lost", "Remote Console Connection Error", 0);