0
我正在使用cs.net中的agsxmpp開發聊天應用程序,目前我設法在openfire服務器上創建持久空間,其輸入顯示在openfire server.but問題是我不能在openfire mysql數據庫中獲得相同的房間條目,直到我手動編輯openfire.here中的房間,我發佈了創建持久房間的代碼,是否有任何方法獲得條目持續的房間都的Openfire服務器和Openfire的MySQL數據庫,幾乎同時,沒有做手工編輯成的Openfire服務器的房間進的?請幫助,如果你知道有關這個anythig ...在c#.net中使用agsxmpp無法獲得持久空間的入口在c#.net中使用agsxmpp
Jid room = new Jid(textBox1.Text + "@conference.myopenfireservername");
xmpp.MessageGrabber.Add(room,
new BareJidComparer(),
new MessageCB(MessageCallBack),
null);
Jid owner = new Jid(u_id+"@myopenfireservername");
xmpp.SendMyPresence();
MucManager muc = new MucManager(xmpp);
muc.JoinRoom(room,GlobalVar.my_perm_nm);
muc.AcceptDefaultConfiguration(room);
xmpp.SendMyPresence();
muc.GrantAdminPrivileges(room, owner);
muc.GrantOwnershipPrivileges(room, owner);
muc.GrantMembership(room, owner);
Jid membs;
for (int i = 0; i < members_id.Count; i++)
{
membs =new Jid(members_id[i].ToString() + "@myopenfireservername");
muc.Invite(membs, room);
muc.GrantMembership(room, membs);
// muc.Invite(roomy, room);
}
MessageBox.Show("Your group has been created..", "Congratulations", MessageBoxButtons.OK, MessageBoxIcon.Information);//displaying this messagebox after creating room and also entry in openfire server,but can't get in mysql database