mina????????????????
???????????? ???????[ 2013/4/15 10:48:23 ] ????????
????3??IoSession
????IoSession??????????IoService????????????IoService?????????????????IoSession????????????session????IoSession???????????Connection?????????????
????????????
????1???????????session.getSessionConfig.XX???????????????????????????????????ν??????????acceptor??connector?????acceptor??connector????????????????session?????????????????????а??????????????????????????????????????????????в????????????????????С????????????
????2???洢?????session.setAttribute()??????web???session??????????session??д洢attribute??????????????????????洢???????????й???????????????web??????????Щ???????????
????3????????д????????session.write()??
????4?????????Session????????????е?byte??message????????
????4??IoHandler
public interface IoHandler {
void sessionCreated(IoSession session) throws Exception;
void sessionOpened(IoSession session) throws Exception;
void sessionClosed(IoSession session) throws Exception;
void sessionIdle(IoSession session?? IdleStatus status) throws Exception;
void exceptionCaught(IoSession session?? Throwable cause) throws Exception;
void messageReceived(IoSession session?? Object message) throws Exception;
void messageSent(IoSession session?? Object message) throws Exception;
}
???????????£????????????messageReceived??????????????????????????IoSession??write?????????????????????o??????????IoHandler??????????????????????IoHandlerAdapter?????????????????7????????????????????????????е?????????????
????5??IoFilter
????Mina?????????????????????????Java??????????ó??????????ó????????????????????????????Щ??????IoFilter?????
????Filter???????????????IoFilter??I/O?????????????IoFilter??Servlet?е?????????????????????????????紫????I/O??????????????
????IoService?????????DefaultIoFilterChainBuilder ---- ???????????????????????????????IoFilter???????????????????????????
????Mina??????????????
????CumulativeProtocolDecoder ??????????
????SynchronizedProtocolDecoder ???????????????κ???????????????????????????????????????????decode()???????????????????ε????????????????????????????????????????
????TextLineDecoder ???????????з??? Windows: ??Linux: ??Mac: ???????????
????????????????
????1??????????????????д???doDecode/doEncode????
????2????дProtocolCodecFactory??????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11