首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

openfire查看出入包

2012-06-29 
openfire查看进出包1 ?监测发出包情况在org.jivesoftware.openfire.nio包下的ConnectionHandler?类下的mes

openfire查看进出包

1 ?监测发出包情况

在org.jivesoftware.openfire.nio包下的ConnectionHandler?类下的messageSent方法中加入:

System.out.println("--SENT:"+ Charset.forName("UTF-8").decode(((ByteBuffer)message).buf()));

?

2 ?监测入包情况

在org.jivesoftware.openfire.nio包下的ConnectionHandler类下的messageReceived方法中加入:

System.out.println("RECV:" + message);

热点排行