简体   繁体   中英

Use NIO server with IO client

I have server worked with NIO based on Mina .

I try to make TCP/IP client for this server using usual java.net.Socket technique. I can successfully establish connection (ie org.apache.mina.core.service.IoHandler.sessionOpened invoked on server side after opening socket on client side). But if I try to write some bytes to socket (from client side) I have no any effect on server (ie org.apache.mina.core.service.IoHandler.messageReceived doesn't invoked).

Could you please explain why this is happen and is that possible to send some message to my NIO server from my usual client's Socket-based app ?

是否在接受器中安装了IoHandler?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM