source.addListener(new ISocketListener() {
public void handleSocketEvent(ISocketEvent event) {
if (event instanceof ISocketConnectedEvent) {
ISocketConnectedEvent connectedEvent = (ISocketConnectedEvent) event;
socketInReadWrapper = new SocketInReadWrapper(
connectedEvent.getSocket(), startTime);
connectedEvent.setSocket(socketInReadWrapper);
}
}
});