Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

io blocking  RSS feed

 
Sachin dev
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
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)
--thanks
sachin
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!