    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Interface org.w3c.www.mux.MuxStreamHandler

public interface MuxStreamHandler

##

acceptSession(MuxStream, int, int)
  Someone has contacted us to speak that protocol, what should we do ? This method gets called by a MuxStream instance when a new session willing to speak some protocol is about to be established.
notifySession(MuxSession)
  A new session has been accepted, and is now ready to run.

##

acceptSession

     public abstract boolean acceptSession(MuxStream stream,
                                           int sessid,
                                           int protid)

  Someone has contacted us to speak that protocol, what should we do ? This method gets called by a MuxStream instance when a new session willing to speak some protocol is about to be established.

  Parameters:
    stream - The stream on which that new session establishment was received.
    sessid - The proposed session identifier for that new session.
    protid - The protocol identifier of the protocol to be spoken on that session.

notifySession

     public abstract void notifySession(MuxSession session)

  A new session has been accepted, and is now ready to run. This method should setup an appropriate protocol handler to deal with the protocol specific to the given session.

  Parameters:
    session - The session that has been accepted.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index