|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.www.mux.MuxSession
public class MuxSession
Field Summary | |
---|---|
protected boolean |
aborted
Has this session been aborted ? |
protected boolean |
finsent
Has this session emitted a FIN (is it half-closed ?) |
protected int |
id
This session's identifier. |
protected MuxInputStream |
in
The session's input stream. |
static int |
INPUT_BUFFER_SIZE
The default input buffer size for all sessions. |
protected MuxOutputStream |
out
The session's output stream. |
protected int |
protid
This session's protocol identifier. |
protected MuxStream |
stream
The stream to which that session belongs. |
Constructor Summary | |
---|---|
protected |
MuxSession(MuxStream stream,
int id,
int protid)
|
Method Summary | |
---|---|
protected void |
abort()
Abort that session. |
int |
getIdentifier()
Get this session identifier. |
java.net.InetAddress |
getInetAddress()
Get the other end's IP address. |
protected int |
getInputBufferSize()
Get this session's input stream buffer size. |
java.io.InputStream |
getInputStream()
Get this session's input stream. |
protected MuxStream |
getMuxStream()
Get the Mux stream to which that session is attached. |
java.io.OutputStream |
getOutputStream()
Get this session's output stream. |
int |
getProtocolIdentifier()
Get this session protocol identifier. |
protected void |
notifyControl(int fragsz)
|
protected void |
notifyCredit(int credit)
|
protected void |
notifyFIN()
We have received a FIN on that session's output stream. |
protected void |
notifyOutputClose()
|
protected void |
notifyPUSH()
|
protected void |
notifyRST()
The other end is telling us that something is going wrong. |
protected void |
pushInput(byte[] data,
int off,
int len,
boolean noflush)
Push some data into that session's input stream. |
protected void |
sendFIN()
Send a FIN message on that session. |
void |
shutdown()
Shutdown that session gracefully. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INPUT_BUFFER_SIZE
protected MuxStream stream
protected MuxInputStream in
protected MuxOutputStream out
protected int id
protected int protid
protected boolean aborted
protected boolean finsent
Constructor Detail |
---|
protected MuxSession(MuxStream stream, int id, int protid)
Method Detail |
---|
protected final void pushInput(byte[] data, int off, int len, boolean noflush) throws java.io.IOException
data
- The buffer containing the data to be pushed.off
- Offset of the data within above buffer.len
- Length of data to be pushed.noflush
- Set to true if there is already more
data available for that session.
java.io.IOException
- If IO was interrupted.protected final void sendFIN() throws java.io.IOException
java.io.IOException
protected final void notifyFIN() throws java.io.IOException
java.io.IOException
- If some IO error occured.protected void notifyRST() throws java.io.IOException
java.io.IOException
protected void notifyPUSH()
protected final void notifyCredit(int credit)
protected final void notifyControl(int fragsz)
protected void notifyOutputClose() throws java.io.IOException
java.io.IOException
protected void abort()
public void shutdown() throws java.io.IOException
java.io.IOException
protected final MuxStream getMuxStream()
protected int getInputBufferSize()
public java.net.InetAddress getInetAddress()
public final int getIdentifier()
public final int getProtocolIdentifier()
public java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |