Logo Search packages:      
Sourcecode: avahi version File versions  Download package

const char* avahi_client_get_host_name ( AvahiClient  ) 

Get host name

Definition at line 741 of file client.c.

References AVAHI_ERR_BAD_STATE.

                                                            {
    assert(client);

    if (!avahi_client_is_connected(client)) {
        avahi_client_set_errno(client, AVAHI_ERR_BAD_STATE);
        return NULL;
    }

    if (!client->host_name)
        client->host_name = avahi_client_get_string_reply_and_block(client, "GetHostName", NULL);

    return client->host_name;
}


Generated by  Doxygen 1.6.0   Back to index