Class STUNServer

java.lang.Object
java.lang.Thread
javaforce.service.STUNServer
All Implemented Interfaces:
Runnable

public class STUNServer extends Thread
  • Field Details

  • Constructor Details

    • STUNServer

      public STUNServer()
      Starts a STUN/TURN server, loading config from file.
    • STUNServer

      public STUNServer(String user, String pass, int min, int max)
      Starts a STUN/TURN server with specific config options.
  • Method Details

    • getConfigFile

      public static String getConfigFile()
    • getLogFile

      public static String getLogFile()
    • getLocalPort

      public int getLocalPort()
    • getLocalAddr

      public String getLocalAddr()
    • close

      public void close()
    • setPortRange

      public void setPortRange(int min, int max)
    • getBusPort

      public static int getBusPort()
    • main

      public static void main(String[] args)
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • serviceStart

      public static void serviceStart(String[] args)
    • serviceStop

      public static void serviceStop()