static apr_status_t nntp_like_send_welcome()

in c-modules/nntp_like/mod_nntp_like.c [85:100]


static apr_status_t nntp_like_send_welcome(conn_rec *c)
{
    apr_bucket *bucket;
    apr_bucket_brigade *bb = apr_brigade_create(c->pool, c->bucket_alloc);

#define NNTP_LIKE_WELCOME \
    "200 localhost - ready\r\n"

    bucket = apr_bucket_immortal_create(NNTP_LIKE_WELCOME,
                                        sizeof(NNTP_LIKE_WELCOME)-1,
                                        c->bucket_alloc);
    APR_BRIGADE_INSERT_TAIL(bb, bucket);
    APR_BRIGADE_INSERT_TAIL(bb, apr_bucket_flush_create(c->bucket_alloc));

    return ap_pass_brigade(c->output_filters, bb);
}