|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.hessian.mux.MuxServer
public class MuxServer
Hessian Mux, a peer-to-peer protocol.
| Constructor Summary | |
|---|---|
MuxServer()
Null argument constructor. |
|
MuxServer(InputStream is,
OutputStream os,
boolean isClient)
Create a new multiplexor with input and output streams. |
|
| Method Summary | |
|---|---|
void |
close()
Close the mux |
InputStream |
getInputStream()
Gets the raw input stream. |
OutputStream |
getOutputStream()
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MuxServer()
public MuxServer(InputStream is,
OutputStream os,
boolean isClient)
is - the underlying input streamos - the underlying output streamisClient - true if this is the connection client.| Method Detail |
|---|
public void init(InputStream is,
OutputStream os,
boolean isClient)
is - the underlying input streamos - the underlying output streamisClient - true if this is the connection client.public InputStream getInputStream()
public OutputStream getOutputStream()
public boolean startCall(MuxInputStream in,
MuxOutputStream out)
throws IOException
IOException
public boolean startCall(int channel,
MuxInputStream in,
MuxOutputStream out)
throws IOException
IOException
public boolean readRequest(MuxInputStream in,
MuxOutputStream out)
throws IOException
IOException
public void close()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||