com.opera.core.systems.util
Interface SocketListener

All Known Implementing Classes:
StpConnection, StpConnectionListener

public interface SocketListener

Interface for use with SocketMonitor for being notified about read/write events.

Author:
Jan Vidar Krey

Method Summary
 boolean canRead(java.nio.channels.SelectableChannel ch)
           
 boolean canWrite(java.nio.channels.SelectableChannel ch)
           
 

Method Detail

canRead

boolean canRead(java.nio.channels.SelectableChannel ch)
                throws java.io.IOException
Returns:
true if more reading is expected.
Throws:
java.io.IOException

canWrite

boolean canWrite(java.nio.channels.SelectableChannel ch)
                 throws java.io.IOException
Returns:
true if more writing is needed.
Throws:
java.io.IOException


Copyright © 2011. All Rights Reserved.