void downloadSDKFromServer() { downloadFiles = 0; if (Directory.Exists(sdkTempPath)) { Directory.Delete(sdkTempPath, true); } Directory.CreateDirectory(sdkTempPath); if (sdkFileStream != null) { sdkFileStream.reclaimObject(); sdkFileStream = null; } // kbcmd options string tool_options = "Unity"; string callbackIP = ""; UInt16 callbackPort = 0; int clientWindowSize = (int)KBEngineApp.app.getInitArgs().RECV_BUFFER_MAX; Bundle bundle = Bundle.createObject(); bundle.newMessage(Messages.messages["Loginapp_importClientSDK"]); bundle.writeString(tool_options); bundle.writeInt32(clientWindowSize); bundle.writeString(callbackIP); bundle.writeUint16(callbackPort); bundle.send(KBEngineApp.app.networkInterface()); }
/* * 创建新的call */ public Bundle newCall() { if (bundle == null) { bundle = Bundle.createObject(); } if (type == EntityCall.ENTITYCALL_TYPE.ENTITYCALL_TYPE_CELL) { bundle.newMessage(Message.messages["Baseapp_onRemoteCallCellMethodFromClient"]); } else { bundle.newMessage(Message.messages["Entity_onRemoteMethodCall"]); } bundle.writeInt32(this.id); return(bundle); }
/* * 创建新的mail */ public Bundle newMail() { if (bundle == null) { bundle = Bundle.createObject(); } if (type == Mailbox.MAILBOX_TYPE.MAILBOX_TYPE_CELL) { bundle.newMessage(Message.messages["Baseapp_onRemoteCallCellMethodFromClient"]); } else { bundle.newMessage(Message.messages["Base_onRemoteMethodCall"]); } bundle.writeInt32(this.id); return(bundle); }
/* * 创建新的mail */ public Bundle newMail() { if (bundle == null) { bundle = Bundle.createObject(); } if (isCell()) { bundle.newMessage(Messages.messages["Baseapp_onRemoteCallCellMethodFromClient"]); } else { bundle.newMessage(Messages.messages["Base_onRemoteMethodCall"]); } bundle.writeInt32(this.id); return(bundle); }