muxprotocolhandler.java

来自「很棒的web服务器源代码」· Java 代码 · 共 32 行

JAVA
32
字号
// MuxProtocolHandler.java// $Id: MuxProtocolHandler.java,v 1.2 1998/01/22 14:31:29 bmahe Exp $// (c) COPYRIGHT MIT and INRIA, 1996.// Please first read the full copyright statement in file COPYRIGHT.htmlpackage org.w3c.www.mux;import java.io.IOException;/** * A proposed base class for protocol handlers. * This base class is to be used in conjunction with the default  * Mux stream handler. You are free to redefine another stream handler * and use your own protocol handler interface. * @see SampleMuxHandler */public interface MuxProtocolHandler {    /**     * Start speaking the protocol you handle on that session.     * Feel free to start a thread, or whatever is needed.     * @param session The session devoted to speak your protocol.     */    abstract public void initialize(MuxSession session) 	throws IOException;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?