com.opera.core.systems.scope.stp
Class StpConnectionListener
java.lang.Object
com.opera.core.systems.scope.stp.StpConnectionListener
- All Implemented Interfaces:
- SocketListener
public class StpConnectionListener
- extends java.lang.Object
- implements SocketListener
This class handles accepting STP connections. STP connections are accepted in the canRead()
method, which then spawns an StpConnection.
- Author:
- Jan Vidar Krey
|
Method Summary |
boolean |
canRead(java.nio.channels.SelectableChannel channel)
|
boolean |
canWrite(java.nio.channels.SelectableChannel ch)
|
protected void |
finalize()
|
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StpConnectionListener
public StpConnectionListener(int port,
IConnectionHandler handler,
AbstractEventHandler eventHandler,
boolean manualConnect,
SocketMonitor monitor)
throws java.io.IOException
- Throws:
java.io.IOException
finalize
protected void finalize()
throws java.lang.Throwable
- Overrides:
finalize in class java.lang.Object
- Throws:
java.lang.Throwable
stop
public void stop()
start
public void start()
throws java.io.IOException
- Throws:
java.io.IOException
canRead
public boolean canRead(java.nio.channels.SelectableChannel channel)
throws java.io.IOException
- Specified by:
canRead in interface SocketListener
- Returns:
- true if more reading is expected.
- Throws:
java.io.IOException
canWrite
public boolean canWrite(java.nio.channels.SelectableChannel ch)
throws java.io.IOException
- Specified by:
canWrite in interface SocketListener
- Returns:
- true if more writing is needed.
- Throws:
java.io.IOException
Copyright © 2011. All Rights Reserved.