Adding support for generating events on IOStream::Device send and receive.