|
JML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INIOHandler
Network event handler, while selector can operate, use methods of this interface. A port or a proxy must implement this interface 网络事件处ç†å™¨ï¼Œå½“Selectorå¯ä»¥è¿›è¡Œæ“作时,调用这个接å£ä¸çš„æ–¹æ³•。一个Port或者一个Proxy å¿…é¡»å®žçŽ°æ¤æŽ¥å£
Method Summary | |
---|---|
void |
processConnect(SelectionKey sk)
While channel get connect event, use this method 当channel得到connect事件时调用这个方法 |
void |
processError(Exception e)
While channel has error, use this method 当channelå‘生错误时调用 |
void |
processRead(SelectionKey sk)
While channel readable, use this method 当channelå¯è¯»æ—¶è°ƒç”¨è¿™ä¸ªæ–¹æ³• |
void |
processWrite()
While channel writable, use this method 当channelå¯å†™æ—¶è°ƒç”¨è¿™ä¸ªæ–¹æ³• |
Method Detail |
---|
void processConnect(SelectionKey sk) throws IOException
sk
- SelectionKey
IOException
void processRead(SelectionKey sk) throws IOException, PacketParseException
sk
- SelectionKey
PacketParseException
IOException
void processWrite() throws IOException
IOException
void processError(Exception e)
e
-
|
JML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |