problem in reading from the socket
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ajit_roy
Posted On:   Monday, March 20, 2006 07:14 AM

Hi all,

My server application is in c++ and client application is in java.In my client application,when i am using InputStream.read(byte[] b),it is working fine.But if I use BufferedReader(new InputStreamReader(new InputStream)).readLine(),it is not receiving any data.The client application is keep on waiting and not giving any data.I am not understanding the reason.


Please express your views.

with regards,
ajse

Re: problem in reading from the socket

Posted By:   ankush_purwar  
Posted On:   Monday, March 20, 2006 01:38 PM

I am not sure but it might be possible that there is no new line character in the server result, in that case readLine() will wait until it receives new line character.
About | Sitemap | Contact