[Zerofile-svn] SF.net SVN: zerofile: [81] trunk/src/XMPPLinkLocalChatSession.java
Status: Pre-Alpha
Brought to you by:
karl-bengtsson
|
From: <kar...@us...> - 2007-12-13 13:57:46
|
Revision: 81
http://zerofile.svn.sourceforge.net/zerofile/?rev=81&view=rev
Author: karl-bengtsson
Date: 2007-12-13 05:57:51 -0800 (Thu, 13 Dec 2007)
Log Message:
-----------
thrown out old code
Modified Paths:
--------------
trunk/src/XMPPLinkLocalChatSession.java
Modified: trunk/src/XMPPLinkLocalChatSession.java
===================================================================
--- trunk/src/XMPPLinkLocalChatSession.java 2007-12-13 13:49:41 UTC (rev 80)
+++ trunk/src/XMPPLinkLocalChatSession.java 2007-12-13 13:57:51 UTC (rev 81)
@@ -67,8 +67,7 @@
fileTransferStanza += "<x xmlns=\"jabber:x:oob\">";
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.asCharBuffer().toString());
+ _toRemoteHost.print(fileTransferStanza);
_toRemoteHost.flush();
}
catch (Exception e)
@@ -85,7 +84,7 @@
{
_s = new Socket(hostToChatWith.getHost(),hostToChatWith.getPort());
_toRemoteHost = new PrintWriter(_s.getOutputStream());
- _fromRemoteHost = new InputStreamReader(_s.getInputStream(),"UTF-8");
+ _fromRemoteHost = new InputStreamReader(_s.getInputStream());
_remoteHostReadingThread.start();
sendHandshake();
}
@@ -211,8 +210,7 @@
try
{
String messageStanza = "<message to=\""+_chatPartner.getServiceName()+"\" from=\""+ZeroconfRegistration.getMyServiceName()+"\"><body>"+m+"</body></message>";
- ByteBuffer bbuf = encoder.encode(CharBuffer.wrap(messageStanza));
- _toRemoteHost.print(bbuf.asCharBuffer().toString());
+ _toRemoteHost.print(messageStanza);
_toRemoteHost.flush();
}
catch (Exception e)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|