Structure SilcServerEntry
NAME
typedef struct SilcServerEntryStruct { ... } *SilcServerEntry;
DESCRIPTION
This structure represents a server in the SILC network. All servers
that the client is aware of and have for example resolved with
SILC_COMMAND_INFO command have their on SilcServerEntry structure.
Server's public key is present only if it has been retrieved using
SILC_COMMAND_GETKEY command. 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 SilcServerEntry it must always take
a reference of it by calling silc_client_ref_server function. The
reference must be released after it is not needed anymore by calling
silc_client_unref_server function.
SOURCE
struct SilcServerEntryStruct {
/* General information */
char *server_name; /* Server name */
char *server_info; /* Server info */
SilcServerID id; /* Server ID */
SilcPublicKey public_key; /* Server public key, may be NULL */
void *context; /* Application specific context */
SilcServerEntryInternal internal;
};
|