[Zerofile-svn] SF.net SVN: zerofile: [79] trunk/src/XMPPLinkLocalChatSession.java
Status: Pre-Alpha
Brought to you by:
karl-bengtsson
|
From: <kar...@us...> - 2007-12-13 13:47:50
|
Revision: 79
http://zerofile.svn.sourceforge.net/zerofile/?rev=79&view=rev
Author: karl-bengtsson
Date: 2007-12-13 05:47:52 -0800 (Thu, 13 Dec 2007)
Log Message:
-----------
bugfix
Modified Paths:
--------------
trunk/src/XMPPLinkLocalChatSession.java
Modified: trunk/src/XMPPLinkLocalChatSession.java
===================================================================
--- trunk/src/XMPPLinkLocalChatSession.java 2007-12-13 13:42:14 UTC (rev 78)
+++ trunk/src/XMPPLinkLocalChatSession.java 2007-12-13 13:47:52 UTC (rev 79)
@@ -68,7 +68,7 @@
fileTransferStanza += "<url type=\"file\" size=\""+String.valueOf(sizeOfFile)+"\">";
fileTransferStanza += "http://"+InetAddress.getLocalHost().getHostAddress()+":"+_httpServer.getPort()+"/"+filnamn+"</url></x></message>";
ByteBuffer bbuf = encoder.encode(CharBuffer.wrap(fileTransferStanza));
- _toRemoteHost.print(bbuf);
+ _toRemoteHost.print(bbuf.toString());
_toRemoteHost.flush();
}
catch (Exception e)
@@ -102,6 +102,7 @@
private void RecievedStanza(String stanza)
{
+ System.out.println(stanza);
if (stanza.contains("<?xml"))
// Stanza is a handshake
{
@@ -211,7 +212,7 @@
{
String messageStanza = "<message to=\""+_chatPartner.getServiceName()+"\" from=\""+ZeroconfRegistration.getMyServiceName()+"\"><body>"+m+"</body></message>";
ByteBuffer bbuf = encoder.encode(CharBuffer.wrap(messageStanza));
- _toRemoteHost.print(bbuf);
+ _toRemoteHost.print(bbuf.toString());
_toRemoteHost.flush();
}
catch (Exception e)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|