private void write(final SipMessage message, final IoSession io, final boolean listen) { final WriteFuture wf = io.write(message); if (listen) { wf.addListener(this); } }
public void run() { // Note there is no Via handling here. This is for UASes // sending responses, so we don't need to strip any Vias. try { final WriteFuture wf = m_ioSession.write(message); wf.addListener(SipClientImpl.this); } catch (final Throwable t) { m_log.error("Unexpected throwable", t); } } };
public void run() { try { final WriteFuture wf = m_transportLayer .writeCrlfKeepAlive(m_ioSession); wf.addListener(new IoFutureListener() { public void operationComplete(final IoFuture future) { m_log.debug("Finished writing CRLF..."); } }); } catch (final Throwable t) { m_log.error("Caught throwable", t); } } };