摘要:
我的Openfire群实现思路:1、群和群成员,要保存到表中。2、拉取群列表和群成员列表,均从DB中查询返回。3、抛弃老外的“进房间,要发Presence”。只要此人一上线,就模似一个Presence进行joinRoom,进入他的各群房间。 多了解LocalMUCRoom 类中:public LocalMUCRole joinRoom(String nickname, String password, HistoryRequest historyRequest,LocalMUCUser user, Presence presence) 我的模似代码如下:View Code 1/**2*模似用. 阅读全文