Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Client Server problems

Status
Not open for further replies.

ankursaxena

Programmer
Sep 7, 2001
133
US
Hi, I wanted to know when you create a client socket and then get output stream and then input stream, do you have to create a seperate thread to read from this inputstream or can I just have one thread which every 5 secs checks to see if there is data on the input stream? The data flow coming in is very little.

Thanks
Ankur
 
I would use a single thread, that sleeps between checks, and connects/disconnects each time.

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top