event: write to a stream rather than a file-descriptor.