Package javaforce.service
Class STUN
java.lang.Object
java.lang.Thread
javaforce.service.STUN
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static intstatic Stringintstatic Stringstatic voidvoidrun()static voidserviceStart(String[] args) static voidvoidsetPortRange(int min, int max) Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Field Details
-
busPack
- See Also:
-
-
Constructor Details
-
STUN
public STUN()Starts a STUN/TURN server, loading config from file. -
STUN
Starts a STUN/TURN server with specific config options.
-
-
Method Details
-
getConfigFile
-
getLogFile
-
getLocalPort
public int getLocalPort() -
getLocalAddr
-
close
public void close() -
setPortRange
public void setPortRange(int min, int max) -
getBusPort
public static int getBusPort() -
main
-
run
public void run() -
serviceStart
-
serviceStop
public static void serviceStop()
-