|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.standalone.transport.tcpmtp.TCPInputConnection
public class TCPInputConnection
Represents the input connection for a tcp stream.
| Field Summary | |
|---|---|
protected ClassLoader |
classloader
The classloader. |
protected CodecFactory |
codecfac
The codec factory. |
protected InputStream |
is
The input stream. |
protected Socket |
sock
The client socket. |
| Constructor Summary | |
|---|---|
TCPInputConnection(Socket sock,
CodecFactory codecfac,
ClassLoader classloader)
Create a new tcp input connection. |
|
| Method Summary | |
|---|---|
void |
close()
Close the connection. |
MessageEnvelope |
read()
Receive a message from a socket. |
protected int |
readByte()
Read a byte from the stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Socket sock
protected InputStream is
protected CodecFactory codecfac
protected ClassLoader classloader
| Constructor Detail |
|---|
public TCPInputConnection(Socket sock,
CodecFactory codecfac,
ClassLoader classloader)
throws IOException
sock - The client socket.
IOException| Method Detail |
|---|
public MessageEnvelope read()
throws IOException
accept - The socket.
IOExceptionpublic void close()
protected int readByte()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||