我正在 c#.net 中使用 agsxmpp 开发聊天应用程序,目前我设法在 openfire 服务器上创建了持久房间,其条目显示在 openfire 服务器中。但问题是我无法在 openfire mysql 数据库中获得相同的房间条目直到,我在 openfire.here 中手动编辑房间openfire服务器的房间入口?请帮助,如果你知道任何与此相关的...
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