随笔分类 - smartfoxserver 2x
smartfoxserver 2x
摘要:http://www.smartfoxserver.com/docs/1x/index.htm?http://www.smartfoxserver.com/docs/1x/docPages/config/advanced.htm#6
阅读全文
摘要:smartfoxserver 2x serverclose unity client error 解决sfs 断网后 unity 卡死public static void close() { if (smartFox!=null) { smartFox.RemoveAllEventListeners(); smartFox.Disconnect(); //smartFox.GetSocketEngine().KillConnection(); smartFox.Handle...
阅读全文
摘要:http://files.cnblogs.com/solq/SmartFox2_csharp_client_1.04%E6%BA%90%E7%A0%81.rar
阅读全文
摘要:Email myEmail = new SFSEmail("so_lq@126.com", "360174425@qq.com", "Test mail", "Hello from SFS2X"); try { SmartFoxServer.getInstance().getMailService().sendMail(myEmail); } catch (MessagingException e) { e.printStackTrace(); }xml 配置:config\server.xml <mail.
阅读全文
摘要:1.安装好后,新建JAVA 项目, jdk 为 1.6 导入 SmartFoxServer2X\SFS2X\ 所有文件,导出自己的扩展。直接导出 src 目录下所有文件就可以了http://www.cnblogs.com/chanjee/archive/2011/09/02/2163820.html下面没有测试过。。。。2.http://blog.csdn.net/brook0344/article/details/6252000http://jenth.iteye.com/blog/576405
阅读全文
摘要://y轴对应 unity 的z轴 //必须要重新赋取,不然 用三角函数===============NAN float x1=u.position.x-mu.position.x; float y1=u.position.z-mu.position.z; float c1=mu.position.Distance(u); double a=new Double(x1); ...
阅读全文
摘要:1.静态类,发觉不能共享数据,,简单的解决方法是,复制多一份扩展到\extensions\__lib__\ 目录。。。不过不推荐这样做,因为你每改一次,都要复制一次2.客户端发送请求时,不要指定房间,请看CODE //smartFox.Send(new ExtensionRequest("mmove", moveObj, smartFox.LastJoinedRoom)); smartFox.Send(new ExtensionRequest("move", moveObj));折腾了很久搞定。。。。不过第二种我没试过用静态数组来保存,,如果你测试成功留
阅读全文
摘要:sfs2x unity 解决手机平台接收卡blog:http://www.cnblogs.com/solq暂时发觉人物行走时,每秒发送的次数太多了,手机处理不过,具体是多少没有测试过。解决方法减少发送频率。if (move_flag && Time.frameCount % 5==0){ move_flag =false;smartFox.Send(new ExtensionRequest("move", new SFSObject(), smartFox.LastJoinedRoom, true)); }不重要的信息最好用 udp 来处理,由于我的水平也有
阅读全文
摘要:DFResLoader loader = new DFResLoader(Main.class.getClassLoader());loader.init(new FileInputStream("D:\\Program Files\\SFS2X-RC1\\SFS2X\\lib\\Lib\\sfs2x-lms.jar")); long expireTime = 4476614400000l;//new Date(2111-1900, 10, 11).getTime(); ISFSObject license = new SFSObject();lic...
阅读全文
摘要:解决 sfs2 admin tool 找不到扩展你的jar 名要有Extension,如testExtension.jar
阅读全文
摘要:void initMongodb() { Mongo mongo; try { trace("\n++++++++++++++++++++++initMongodb++++++++++++++++++++++++\n"); mongo = new Mongo("localhost", 10011); DB db = mongo.getDB("yourdb"); // 从Mongodb中获得名为yourColleection的数据集合,如果该数据集合不存在,Mongodb会为其新建...
阅读全文
摘要:<databaseManager active="true"> <driverName>com.mysql.jdbc.Driver</driverName> <connectionString>jdbc:mysql://127.0.0.1:7878/test</connectionString> <userName>root</userName> <password>kwgkwg</password> <testSql></testSql> &
阅读全文

浙公网安备 33010602011771号