Package org.webpieces.asyncserver.api
Interface AsyncDataListener
-
- All Superinterfaces:
org.webpieces.nio.api.handlers.DataListener
public interface AsyncDataListener extends org.webpieces.nio.api.handlers.DataListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconnectionOpened(org.webpieces.nio.api.channels.TCPChannel channel, boolean isReadyForWrites)This is called twice on SSL channels, once for connection before handshake so one could timeout if no value MSG is received.
-
-
-
Method Detail
-
connectionOpened
void connectionOpened(org.webpieces.nio.api.channels.TCPChannel channel, boolean isReadyForWrites)This is called twice on SSL channels, once for connection before handshake so one could timeout if no value MSG is received. ie. in the case of http, if no parsed http message comes through in X time, you can then close the connection. Timing out on bytes is quite useless but timing out on a valid message is good stuff.- Parameters:
proxy-isReadyForWrites-
-
-