Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > LimeWire+WireShare (Cross-platform) > Technical Support > Connection Problems
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Search Today's Posts Mark Forums Read

Connection Problems Problems getting the LimeWire or WireShare program connecting to the Gnutella network. (not about connecting to files, that is a Download/Upload Problems section issue.) Please supply system details as described in the forum rules.
Start here Suggestions to help you get connected, * try here first *, then see below (click on 'this' blue link)

Did you FORGET something BEFORE you posted? If you post in this section you MUST provide these details: System details - help us to help you (click on 'this' blue link), else do not be surprised if your posting is ignored :)


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2 (permalink)  
Old March 14th, 2003
Distinguished Member
 
Join Date: September 21st, 2002
Location: Aachen
Posts: 733
trap_jaw is flying high
Default

Your headers are not HTTP compliant.

java's println(String) functions just append a newline character '\n' to the string. The correct way to terminate a HTTP header line is appending a carriage return and than a newline to the line: '\r\n'.

The while loop is not going to work properly either. The correct while loop should be:

while (!response.equals("")) {
if (response == null) {
throw new IOException("reading null indicates an error");
}
...
}


Java's readLine functions block until they read a non-null string. If readLine() cannot read a string it throws an IOException (either because the connection failed or because you specified a read timeout by setting Socket.soTimeout(int != 0).

I don't know the gnucleus sources but that was not the problem keeping you from connecting. The code opening the socket appears to be correct so Gnucleus should at least notice the connection attempt.

If you have any further questions feel free to mail me ( gregorio at gmx.li ) or subscribe to the limewire devel mailinglists at www.limewire.org ( dev@core.limewire.org is the place to go for questions like this).
__________________
Morgens ess ich Cornflakes und abends ess ich Brot
Und wenn ich lang genug gelebt hab, dann sterb ich und bin tot

--Fischmob
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
connection issue xcxcxskater21 Connection Problems 1 March 18th, 2007 05:25 PM
Connection Issue Manifest0 Help & Support 0 March 12th, 2007 09:36 AM
Connection Issue...Again omination Host Connections 2 December 14th, 2006 03:19 PM
Connection Issue Ace120X Connection Problems 3 July 7th, 2006 11:11 AM
yet another connection issue KyoZero Connection Problems 8 April 23rd, 2005 10:03 AM


All times are GMT -7. The time now is 07:51 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.