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, shutdownOutput
blockReadable, blockWritable, flush, flush, flush, getInputStream, getOutputStream, isBlocking, isBufferingInput, isBufferingOutput, isBufferred, isClosed, setInputStream, setOutputStream
protected Socket _socket
public Connection(Socket socket) throws IOException
IOException
public void dispatch() throws InterruptedException, IOException
InterruptedException
IOException
public int fill(Buffer buffer) throws IOException
EndPoint
fill
in interface EndPoint
fill
in class StreamEndPoint
int
value indicating the number of bytes
filled or -1 if EOF is reached.IOException
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.