File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please Help Me WIth Whois Server

 
Maki Jav
Ranch Hand
Posts: 445
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Here is the program that can get you details from a whois service like internic.com

Now the problem is that I want to make a bare bone whois server for this program
I have written the program below but somehow after read the input stream the server doesnot process the outputstream... it gets sort of stuck....
I tried Buffered Reader and InputStream for reading input from program. While using 'is' (InputStream) gets me to line "I am here" , using BufferedReader is not taking me beyond the while loop


Thank you in advance
Maki Jav
[ November 10, 2003: Message edited by: Maki Jav ]
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ummm... if you want people to look at it, it would help if the formatting had some correlation to program structure, rather than randomly bouncing around. It's painful to try to sort out what's going on there...
 
Maki Jav
Ranch Hand
Posts: 445
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I hope that some formatting I have done to the above post of mine will make it more readable!

Maki Jav
 
Maki Jav
Ranch Hand
Posts: 445
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jim,
Would it be not better that instead of using
while(inquiry!=null){
inquiry=br.readLine();
if(inquiry!=null)
System.out.println(inquiry);
}
I use
inquiry=br.readLine();
System.out.println(inquiry);
if(inquiry!=null)
inquiry=br.readLine();
System.out.println(inquiry);
br.close()
what you say?
Maki Jav
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic