Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Applets with HTTP Tunneling

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...
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 . 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.
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Do you pee on your compost? Does this tiny ad?
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic