Simon Trudeau skrev:
Could any of you explain to me, for an IoFilter, the difference between
filterWrite() and messageSend()? I tend to mix them up and assume they
almost do the same thing.
Thanks, Simon

filterWrite() is called when session.write() is called. The IoFilter will have the opportunity to intercept the data before it is being written on the socket. The messageSent() callback is called after the data has been written to the socket. It directly corresponds to IoHandler.messageSent().

HTH

/Niklas

Reply via email to