Package javaforce.service
Class STUNServer
java.lang.Object
java.lang.Thread
javaforce.service.STUNServer
- 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
ConstructorsConstructorDescriptionStarts a STUN/TURN server, loading config from file.STUNServer(String user, String pass, int min, int max) Starts a STUN/TURN server with specific config options. -
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
-
STUNServer
public STUNServer()Starts a STUN/TURN server, loading config from file. -
STUNServer
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()
-