_receiver = receiver;
}
@Override
protected void socketOpened(Socket socket, BufferedOutputStream os, BufferedInputStream is) {
final FudgeMsgReader reader = _fudgeContext.createMessageReader(is);
_writer.setFudgeMsgWriter(_fudgeContext, os);
_receiverJob = new TerminatableJob() {
@Override
protected void runOneCycle() {
final FudgeMsgEnvelope envelope;
try {
envelope = reader.nextMessageEnvelope();
} catch (FudgeRuntimeIOException e) {
if (exceptionForcedByClose(e.getCause())) {
s_logger.info("Connection terminated");
} else {
s_logger.warn("I/O exception during recv - {} - stopping socket to flush error", e.getCause());