elecharny commented on PR #50:
URL: https://github.com/apache/mina/pull/50#issuecomment-3765815488

   OTOH, if you know you are dealing with a NioSocketSession, you know for sure 
it's a SocketChannel.
   
   Sure there are missing function that would give you back the underlying 
channel (like isChannnelConnected() or such), but well, I get your requirement, 
and it's simpler to make the function public.
   
   We can debate it if we should give access to the channel state instead of 
giving full access to the full channel, that would allow any application to 
write/read/shutdown it, which IMHO opens the door a bit wide.
   
   Just let me know what you think of it, to see if there is some means to do 
that and have your app happy at the same time.
   
   In the mean time, patch applied.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to