How make a read from stream to hold program execution until something's written.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jonas_Fredriksson
Posted On:   Monday, February 25, 2002 07:51 AM

How can you make a read-command from a stream to hold the program execution until something's written to the stream? That is, not reading null and continue.

I'm developing a client/server thing and don't wanna ask the server all the time if it has any data to send.

The client is an applet and the server is a servlet and I can't use sockets, just http posts.

/Jonas

Re: How make a read from stream to hold program execution until something's written.

Posted By:   John_Zukowski  
Posted On:   Tuesday, February 26, 2002 01:15 AM

I'm missinI'm missing your question I think. The basic read() operatoin is blocking.g your question I think. The basic read() operatoin is blocking.
About | Sitemap | Contact