Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applets with HTTP Tunneling

 
Annapurna B
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are trying to implement HTTP Tunneling in the applets.We created an URL connection that is accepted by the socket in the server class. We have to hold the URL connection and the respective socket at the server side for each client. Data written from the server to the client is reaching the client but data from the client is not reaching the server.We are using datainputstream and printstream classes at the client/server classes. When we tried to use any other input streams or readers in the server side the input stream is not getting created in the client side and the applet is hanging. Can anyone sugguest a solution for the above situation...
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Annapurna B",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.
 
Prashanth menon
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I think the problem is not closing the socket or io stream when data is transferred. Hence the socket is virtually locked for transfer from one side.
More over when you use multiple clients it is not necessary to create multiple sockets for each client( unless you are specific about it). You may make use of multithreading. Consider each client as a thread and work thereon.
regards
Prashanth
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic