你的这篇文章,在IE里无法显示,我觉得是由于模板里,title标签在前的问题。正确的应该是这样:
<$BlogMetaData$>
<title><$BlogPageTitle$></title>
--
爱别人,爱自己!
// Assume we've created an XMPPConnection name "connection".Chat.sendMessage(String)方法是一个快捷方法:它首先创建一个Message对象,然后设置消息体,最后发送消息。如果你想在发送消息前增加其他熟悉,你可以使用如下的代码段:
Chat newChat = connection.createChat("jsmith@jivesoftware.com");
newChat.sendMessage("Howdy!");
// Assume we've created an XMPPConnection name "connection".Chat允许你很容易的侦听对方的回复。下面的代码段是一个应声虫,它回显对方输入的信息
Chat newChat = connection.createChat("jsmith@jivesoftware.com");
Message newMessage = newChat.createMessage();
newMessage.setBody("Howdy!");
message.setProperty("favoriteColor", "red");
newChat.sendMessage(newMessage);
// Assume we've created an XMPPConnection name "connection".
Chat newChat = connection.createChat("jsmith@jivesoftware.com");
newMessage.setBody("Hi, I'm an annoying parrot-bot! Type something back to me.");
while (true) {
// Wait for the next message the user types to us.
Message message = newChat.nextMessage();
// Send back the same text the other user sent us.
newChat.sendMessage(message.getBody());
一般来说,在组内收发消息和两人对话类似。并且提供了列出组内其他人的方法。// Assume we've created an XMPPConnection name "connection".
GroupChat newGroupChat = connection.createGroupChat("test@jivesoftware.com");
// Join the group chat using the nickname "jsmith".
newGroupChat.join("jsmith");
// Send a message to all the other people in the chat room.
newGroupChat.sendMessage("Howdy!");
// Create a connection to the jabber.org server.
XMPPConnection conn1 = new XMPPConnection("jabber.org");
// Create a connection to the jabber.org server on a specific port.
XMPPConnection conn2 = new XMPPConnection("jabber.org", 5222);
// Create an SSL connection to jabber.org.
XMPPConnection connection = new SSLXMPPConnection("jabber.org");
// Create a new presence. Pass in false to indicate we're unavailable.
Presence presence = new Presence(Presence.Type.UNAVAILABLE);
presence.setStatus("Gone fishing");
// Send the packet (assume we have a XMPPConnection instance called "con").
con.sendPacket(presence);
阿里巴巴在搜索领域既有决心更有信心,从今天起,在中国,雅虎就是搜索,搜索就是雅虎。
现在来看看怎样才能接受由Gtalk发出的信息呢? 在Smack�我现在知道有两种方式,可以获得Gtalk发出的信息
Chat.setFilteredOnThreadID(false);
while (true) {
Message message = chat.nextMessage();
chat.sendMessage(message.getBody());
System.out.print (message.getBody());
}
Chat.setFilteredOnThreadID(false);
GoogleTalkConnection con = new GoogleTalkConnection();
con.login("iouniuniu", "me");
PacketListener messageListener = new PacketListener() {
public void processPacket(Packet packet) {
Message message = (Message) packet;
String body = message.getBody();
handle(body);
}
};
con.addPacketListener(messageListener, new PacketTypeFilter(
Message.class));
但是如果要成功必须注意下面两个问题:
后�问题,现在仅仅是在代码上实现了怎么和Google Talk进行通信,具体的原理并不清楚。接下来的工作就是要慢慢的了解Smack的实现方法和Jabber的基本原理。要做到知其然,并且知其所以然。
Google的生日日期好像是个问题,看来和人的生日一样,都是可以随便定的。呵呵 ^_^。
一说9月7日
根据Google官方的解释,诞生于1998年9月7日。但是在今年9月7日那天并没有庆祝7周岁的Logo。 很不幸的是Google的官方解释现在访问不到了,会出现这个错误Document Not Found Sorry, the document you requested is not available. You can return to the refering page, or You can visit the main page.不过还好,从下面这个图中能清楚地看见日期 
一说9月27日
在不是Google生日的今天,却在Google的主页上出现了庆祝7周岁的Logo。这与Google的官方解释差了20天。