|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.standalone.transport.niotcpmtp.NIOTCPInputConnection
public class NIOTCPInputConnection
The input connection (channel) for incoming requests.
| Field Summary | |
|---|---|
protected ClassLoader |
classloader
The classloader. |
protected byte |
codec_id
The codec id. |
protected CodecFactory |
codecfac
The codec factory. |
protected int |
msg_end
The current message length (-1 for none). |
protected ByteBuffer |
readbuffer
The read buffer for reading out the messages. |
protected SocketChannel |
sc
The socket channel for receiving messages. |
protected ByteBuffer |
writebuffer
The write buffer for the channel. |
| Constructor Summary | |
|---|---|
NIOTCPInputConnection(SocketChannel sc,
CodecFactory codecfac,
ClassLoader classloader)
Constructor for InputConnection. |
|
| Method Summary | |
|---|---|
void |
close()
Close the connection. |
MessageEnvelope |
read()
Read a message from the channel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SocketChannel sc
protected ByteBuffer writebuffer
protected ByteBuffer readbuffer
protected int msg_end
protected byte codec_id
protected CodecFactory codecfac
protected ClassLoader classloader
| Constructor Detail |
|---|
public NIOTCPInputConnection(SocketChannel sc,
CodecFactory codecfac,
ClassLoader classloader)
sc - dec -
IOException| Method Detail |
|---|
public MessageEnvelope read()
throws IOException
Exception - on read error.
IOExceptionpublic void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||