Structure SilcChannelEntry
NAME
typedef struct SilcChannelEntryStruct { ... } *SilcChannelEntry;
DESCRIPTION
This structure represents a channel in the SILC network. All
channels that the client are aware of or have joined in will be
represented as SilcChannelEntry. The structure includes information
about the channel. All strings in the structure are UTF-8 encoded.
Application may store its own pointer into the context pointer in
this structure.
NOTES
If application stores the SilcChannelEntry it must always take
a reference of it by calling silc_client_ref_channel function. The
reference must be released after it is not needed anymore by calling
silc_client_unref_channel function.
SOURCE
struct SilcChannelEntryStruct {
char *channel_name; /* Channel name */
char server[256 + 1]; /* SILC server name */
char *topic; /* Current topic, may be NULL */
SilcPublicKey founder_key; /* Founder key, may be NULL */
SilcDList channel_pubkeys; /* Channel public keys, may be NULL */
SilcChannelID id; /* Channel ID */
SilcUInt32 mode; /* Channel mode, ChannelModes. */
SilcUInt32 user_limit; /* User limit on channel */
SilcHashTable user_list; /* Joined users. Key to hash table is
SilcClientEntry, context is
SilcChannelUser. */
const char *cipher; /* Current channel cipher algorithm*/
const char *hmac; /* Current channel HMAC algorithm */
void *context; /* Application specific context */
SilcChannelEntryInternal internal;
};
|