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(SelectableChannel ch)
           
 boolean canWrite(SelectableChannel ch)
           
 

Method Detail

canRead

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

canWrite

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


Copyright © 2012. All Rights Reserved.