• Post Reply Bookmark Topic Watch Topic
  • New Topic

Socket Operation on NIO Channels--Possible??

 
merwin pinto
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ..... i was writing a code for the server to accept connections ....i am using the NIO channels package ......my question is ....can i retrieve the socket from the selectable channel, that has connected and perform ...getInputStream() ...on it.... (Finally to read an object)
i tried it and it gave ...InvalidBlockingModeException ....even if i change
the blocking mode ..it gives... the same problem...

"Is it not possible for me to perform socket operations on a selectable channel?"
i am not sure what the problem is ....

PLEASE HELP ME SOLVE THIS PROBLEM !!!
thanks a lot ,
regards
Merwin
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!