protected class SocketConnector.ConnectorEndPoint extends SocketEndPoint implements Runnable, ConnectedEndPoint
Constructor and Description |
---|
SocketConnector.ConnectorEndPoint(Socket socket) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close any backing stream associated with the endpoint
|
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.
|
Connection |
getConnection() |
void |
run() |
void |
setConnection(Connection connection) |
getLocalAddr, getLocalHost, getLocalPort, getRemoteAddr, getRemoteHost, getRemotePort, getTransport, idleExpired, isInputShutdown, isOpen, isOutputShutdown, setMaxIdleTime, shutdownInput, shutdownOutput, shutdownSocketInput, shutdownSocketOutput, toString
blockReadable, blockWritable, flush, flush, flush, getInputStream, getMaxIdleTime, getOutputStream, isBlocking, isClosed, setInputStream, setOutputStream
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
blockReadable, blockWritable, flush, flush, flush, getLocalAddr, getLocalHost, getLocalPort, getMaxIdleTime, getRemoteAddr, getRemoteHost, getRemotePort, getTransport, isBlocking, isInputShutdown, isOpen, isOutputShutdown, setMaxIdleTime, shutdownInput, shutdownOutput
protected final Socket _socket
public SocketConnector.ConnectorEndPoint(Socket socket) throws IOException
IOException
public Connection getConnection()
getConnection
in interface ConnectedEndPoint
public void setConnection(Connection connection)
setConnection
in interface ConnectedEndPoint
public void dispatch() throws IOException
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.EofException
- If input is shutdown or the endpoint is closed.IOException
public void close() throws IOException
EndPoint
close
in interface EndPoint
close
in class SocketEndPoint
IOException
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.