#define SERVER_NAME_FROM_CHANNEL (   channel)    (vortex_connection_get_server_name (vortex_channel_get_connection (channel)))

Allows to get the associated serverName value under which the connection is working.

The serverName value is a centric concept inside BEEP and defines under which name is acting the connection. In general, this value is used to implement resource separation based on the serverName configured.

A key concept is that the serverName value is negociated, accepted and fixed for the rest of the session on the first successful channel created on the connection. Once done, no diferent serverName can be negociated.

Parameters
channelThe channel that is requested to return the serverName associated to the connection holding the channel.
Returns
The serverName associated or NULL if none is defined.