91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 0M
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2024-01-31
  • 語言: 其他
  • 標簽: 其他??

資源簡介

Main.zip

資源截圖

代碼片段和文件信息

package?dk.fullcontrol.fps;
import?java.io.IOException;
?
import?java.io.FileOutputStream;
?
import?java.lang.reflect.InvocationTargetException;
?
import?scala.testing.SUnit.Test;
?

import?com.smartfoxserver.v2.entities.data.SFSobject;
import?com.smartfoxserver.v2.protocol.binary.DefaultPacketCompressor;
?
//???????????
public?class?Main?{
public?static?void?main(String[]?args)?throws?ClassNotFoundException?IllegalAccessException?IllegalArgumentException?InvocationTargetException?NoSuchMethodException?SecurityException?InstantiationException?IOException?{
????SFSobject?license?=?new?SFSobject();
????license.putUtfString(“customer“?““);//?授權人,為空則為共享版,否則個人版
????license.putUtfString(“bind“?“47.95.28.187“);//?限制IP?,也就是服務器的公網IP!!如果寫內網IP則只能在內網上訪問。
????license.putInt(“users“?-1);//?連接數上限,-1為無限數量
????license.putLong(“expire“?0);//?版權到期時間,0為無限制
????license.putBool(“private“?false);//?私有?

????byte[]?objectBytes?=?license.toBinary();
????try?{
objectBytes?=?new?DefaultPacketCompressor().compress(objectBytes);
}?catch?(Exception?e)?{
//?TODO?Auto-generated?catch?block
e.printStackTrace();
}
????byte[]?licenseData?=?new?byte[objectBytes.length?+?4];
????for?(int?i?=?0;?i?jectBytes.length;?i++)?{
????????????licenseData[i?+?4]?=?(byte)?(objectBytes[i]?^?licenseData[2]);
????}

????new?FileOutputStream(“C:\\license.2x“).write((byte[])?licenseData);?//設置保存的路徑

//
//
//DFResLoader?loader?=?new?DFResLoader(Main.class.getClassLoader());
//
//loader.init(new?FileInputStream(“lib\\Lib\\sfs2x-lms.jar“));
//?
//????????????????
//long?expireTime?=?4476614400000l;//new?Date(2111-1900?10?11).getTime();
//?
//????????
//?
//ISFSobject?license?=?new?SFSobject();
//?
//license.putUtfString(“customer“?““);//????????????????棬????????
//?
//license.putUtfString(“bind“?“127.0.0.1“);//????IP
//?
//license.putInt(“users“?-1);//???????????-1?????????
//?
//license.putLong(“expire“?0);//expireTime???????????0???????
//?
//license.putBool(“private“?false);//??У?
//?
//????????????????
////sfs.lms.d.w
//?
//Class?da?=?loader.loadClass(“sfs.lms.b.v“);
//?
////???浽config/license.2x
//?
//da.getMethod(“D“?ISFSobject.class).invoke(da.newInstance()?license);



//if?(args.length?>?0)?{
//clusterMode?=?args[0].equalsIgnoreCase(“cluster“);
//useConsole?=?args.length?>?1?&&?args[1].equalsIgnoreCase(“console“);
//}
//final?SmartFoxServer?sfs2X?=?SmartFoxServer.getInstance();
//sfs2X.setClustered(clusterMode);
//if?(useConsole)
//sfs2X.startDebugConsole();
//sfs2X.start();
//}
//public?static?byte[]?getStream(FileInputStream?fileInputStream)?{
//????byte[]?d;
// try?{
// d?=?new?byte[fileInputStream.available()];
// fileInputStream.read(d);
//????????return?d;
// }?catch?(IOException?e1)?{
// //?TODO?Auto-generated?catch?block
// e1.printStackTrace();
// }
// return?null;

}

}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????3228??2017-09-20?13:14??Main.java

評論

共有 條評論