protected class SocketConnector.Connection extends SocketEndPoint implements Runnable
| Constructor and Description |
|---|
Connection(Socket socket) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch() |
int |
fill(Buffer buffer)
Fill the buffer from the current putIndex to it's capacity from whatever
byte source is backing the buffer.
|
void |
run() |
close, getLocalAddr, getLocalHost, getLocalPort, getRemoteAddr, getRemoteHost, getRemotePort, getTransport, isOpen, shutdownOutputblockReadable, blockWritable, flush, flush, flush, getInputStream, getOutputStream, isBlocking, isBufferingInput, isBufferingOutput, isBufferred, isClosed, setInputStream, setOutputStreamprotected Socket _socket
public Connection(Socket socket) throws IOException
IOExceptionpublic void dispatch()
throws InterruptedException,
IOException
InterruptedExceptionIOExceptionpublic int fill(Buffer buffer) throws IOException
EndPointfill in interface EndPointfill in class StreamEndPointint value indicating the number of bytes
filled or -1 if EOF is reached.IOExceptionCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.