Class STUN

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

public class STUN extends Thread
  • Field Details

  • Constructor Details

    • STUN

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

      public STUN(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()