Package com.caucho.hessian.mux
Class MuxServer
java.lang.Object
com.caucho.hessian.mux.MuxServer
Hessian Mux, a peer-to-peer protocol.
-
Constructor Summary
ConstructorsConstructorDescriptionNull argument constructor.MuxServer
(InputStream is, OutputStream os, boolean isClient) Create a new multiplexor with input and output streams. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the muxGets the raw input stream.Gets the raw output stream.void
init
(InputStream is, OutputStream os, boolean isClient) Initialize the multiplexor with input and output streams.boolean
readRequest
(MuxInputStream in, MuxOutputStream out) Reads a server request.boolean
startCall
(int channel, MuxInputStream in, MuxOutputStream out) Starts a client call.boolean
startCall
(MuxInputStream in, MuxOutputStream out) Starts a client call.
-
Constructor Details
-
MuxServer
public MuxServer()Null argument constructor. -
MuxServer
Create a new multiplexor with input and output streams.- Parameters:
is
- the underlying input streamos
- the underlying output streamisClient
- true if this is the connection client.
-
-
Method Details
-
init
Initialize the multiplexor with input and output streams.- Parameters:
is
- the underlying input streamos
- the underlying output streamisClient
- true if this is the connection client.
-
getInputStream
Gets the raw input stream. Clients will normally not call this. -
getOutputStream
Gets the raw output stream. Clients will normally not call this. -
startCall
Starts a client call.- Throws:
IOException
-
startCall
Starts a client call.- Throws:
IOException
-
readRequest
Reads a server request.- Throws:
IOException
-
close
Close the mux- Throws:
IOException
-