This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!