| java.lang.Object com.caucho.hessian.mux.MuxServer
MuxServer | public class MuxServer (Code) | | Hessian Mux, a peer-to-peer protocol.
|
MuxServer | public MuxServer()(Code) | | Null argument constructor.
|
MuxServer | public MuxServer(InputStream is, OutputStream os, boolean isClient)(Code) | | Create a new multiplexor with input and output streams.
Parameters: is - the underlying input stream Parameters: os - the underlying output stream Parameters: isClient - true if this is the connection client. |
freeReadLock | void freeReadLock()(Code) | | Frees the channel for reading.
|
freeWriteLock | void freeWriteLock()(Code) | | Frees the channel for writing.
|
getInputStream | public InputStream getInputStream()(Code) | | Gets the raw input stream. Clients will normally not call
this.
|
getOutputStream | public OutputStream getOutputStream()(Code) | | Gets the raw output stream. Clients will normally not call
this.
|
getReadLock | boolean getReadLock()(Code) | | |
init | public void init(InputStream is, OutputStream os, boolean isClient)(Code) | | Initialize the multiplexor with input and output streams.
Parameters: is - the underlying input stream Parameters: os - the underlying output stream Parameters: isClient - true if this is the connection client. |
readChannel | InputStream readChannel(int channel) throws IOException(Code) | | Reads data from a channel.
Parameters: channel - the channel true if the channel is valid. |
writeChannel | OutputStream writeChannel(int channel) throws IOException(Code) | | Grabs the channel for writing.
Parameters: channel - the channel true if the channel has permission to write. |
|
|