Advertisement
you_are_adopted

XXXProtocol.java

Feb 23rd, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.70 KB | None | 0 0
  1. package xx.xxx.XXX.ndkcode;
  2.  
  3. public class XXXProtocol {
  4.      static
  5.      {
  6.      System.loadLibrary("xxxx_jni");
  7.      }
  8.  
  9.      /**
  10.      * Native C++ method to start XXX Protocol
  11.      *
  12.      * @param ip ip address of XXX table
  13.      * @param port listening port of XXX table
  14.      * @param assets path to scenario assets
  15.      */
  16.     public static native void startXXXX(String ip, int port, String assets);
  17.  
  18.     /**
  19.      * Native C++ method to stop XXX Protocol
  20.      */
  21.     public static native void stopXXXX();
  22.  
  23.     /**
  24.      * Native C++ method to stop XXX Protocol
  25.      * @param jsonString JSON represented as a String
  26.      */
  27.     public static native void sendJsonViaXxxx(String jsonString);
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement