public class LanServerPingThread
extends java.lang.Thread
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
address |
private boolean |
isStopping |
private static org.apache.logging.log4j.Logger |
LOGGER |
private java.lang.String |
motd |
private java.net.DatagramSocket |
socket |
private static java.util.concurrent.atomic.AtomicInteger |
UNIQUE_THREAD_ID |
Constructor and Description |
---|
LanServerPingThread(java.lang.String p_i1321_1_,
java.lang.String p_i1321_2_) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getAdFromPingResponse(java.lang.String p_77523_0_) |
static java.lang.String |
getMotdFromPingResponse(java.lang.String p_77524_0_) |
static java.lang.String |
getPingResponse(java.lang.String p_77525_0_,
java.lang.String p_77525_1_) |
void |
interrupt() |
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
private static final java.util.concurrent.atomic.AtomicInteger UNIQUE_THREAD_ID
private static final org.apache.logging.log4j.Logger LOGGER
private final java.lang.String motd
private final java.net.DatagramSocket socket
private boolean isStopping
private final java.lang.String address
public LanServerPingThread(java.lang.String p_i1321_1_, java.lang.String p_i1321_2_) throws java.io.IOException
java.io.IOException
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void interrupt()
interrupt
in class java.lang.Thread
public static java.lang.String getPingResponse(java.lang.String p_77525_0_, java.lang.String p_77525_1_)
public static java.lang.String getMotdFromPingResponse(java.lang.String p_77524_0_)
public static java.lang.String getAdFromPingResponse(java.lang.String p_77523_0_)