src/siri/admin/client.c
/*
 * Called when authentication is successful.
 */
Called when authentication is successful.
Called when authentication is successful .
static void CLIENT_on_auth_success(siri_admin_client_t * adm_client)
{
    sirinet_pkg_t * pkg;
    qp_packer_t * packer = sirinet_packer_new(512);
    if (packer == NULL)
    {
        CLIENT_err(adm_client, "memory allocation error");
    }
    else
    {
        adm_client->request = CLIENT_REQUEST_STATUS;
        qp_add_type(packer, QP_ARRAY1);
        qp_add_string(packer, "list servers name, status, version");
        pkg = sirinet_packer2pkg(packer, 0, CPROTO_REQ_QUERY);
        CLIENT_send_pkg(adm_client, pkg);
    }
}
static void CLIENT_on_auth_success ( siri_admin_client_t * adm_client ) { sirinet_pkg_t * pkg ; qp_packer_t * packer = sirinet_packer_new ( 512 ) ; if ( packer == NULL ) { CLIENT_err ( adm_client , " " ) ; } else { adm_client -> request = CLIENT_REQUEST_STATUS ; qp_add_type ( packer , QP_ARRAY1 ) ; qp_add_string ( packer , " " ) ; pkg = sirinet_packer2pkg ( packer , 0 , CPROTO_REQ_QUERY ) ; CLIENT_send_pkg ( adm_client , pkg ) ; } }
Called when authentication is successful.
Called when authentication is successful .
/* no need to check since this will always fit */