io streams blocking
1 posts in topic
Flat View  Flat View

Posted By:   sachin_dev
Posted On:   Thursday, October 18, 2001 05:43 AM

i have written a ftpclient program connecting to the Ftpserver at port 21.Using socket.getInputStream()
i read the server responses,but when i use read()!=-1 or readLine()!=null methods the stream gets blocked after reading the first reply from the
server.how can i make it work without using threads?
(with threads it works fine)


Re: io streams blocking

Posted By:   Kevin_Riff  
Posted On:   Saturday, October 20, 2001 09:40 AM

You can use non-blocking IO, but only in JDK 1.4. Prior to that, threads are the way to go.
About | Sitemap | Contact