public class StpConnectionListener extends Object implements SocketListener
SocketListener.canRead(java.nio.channels.SelectableChannel) method, which then spawns an StpConnection.| Constructor and Description |
|---|
StpConnectionListener(int port,
ConnectionHandler handler,
EventHandler eventHandler,
boolean manualConnect,
SocketMonitor monitor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(SelectableChannel channel) |
boolean |
canWrite(SelectableChannel ch) |
protected void |
finalize() |
void |
start()
Starts the STP connection listener.
|
void |
stop()
Shuts down and cleans up the STP connection to Opera.
|
public StpConnectionListener(int port,
ConnectionHandler handler,
EventHandler eventHandler,
boolean manualConnect,
SocketMonitor monitor)
throws IOException
IOExceptionprotected void finalize()
throws Throwable
public void stop()
public void start()
throws IOException
IOException - if unable to bind to addresspublic boolean canRead(SelectableChannel channel) throws IOException
canRead in interface SocketListenerIOExceptionpublic boolean canWrite(SelectableChannel ch) throws IOException
canWrite in interface SocketListenerIOExceptionCopyright © 2013. All Rights Reserved.