1 /* SERVER_CONNECT_REC definition, used for inheritance */
2 
3 int type; /* module_get_uniq_id("SERVER CONNECT", 0) */
4 int chat_type; /* chat_protocol_lookup(xx) */
5 
6 int refcount;
7 
8 /* if we're connecting via proxy, or just NULLs */
9 char *proxy;
10 int proxy_port;
11 char *proxy_string, *proxy_string_after, *proxy_password;
12 
13 unsigned short family; /* 0 = don't care, AF_INET or AF_INET6 */
14 char *tag; /* try to keep this tag when connected to server */
15 char *address;
16 int port;
17 char *chatnet;
18 
19 IPADDR *own_ip4, *own_ip6;
20 
21 char *password;
22 char *nick;
23 char *username;
24 char *realname;
25 
26 char *tls_cert;
27 char *tls_pkey;
28 char *tls_pass;
29 char *tls_cafile;
30 char *tls_capath;
31 char *tls_ciphers;
32 char *tls_pinned_cert;
33 char *tls_pinned_pubkey;
34 
35 GIOChannel *connect_handle; /* connect using this handle */
36 
37 /* when reconnecting, the old server status */
38 unsigned int reconnection:1; /* we're trying to reconnect a connected server */
39 unsigned int reconnecting:1; /* we're trying to reconnect any connection */
40 unsigned int no_autojoin_channels:1; /* don't autojoin any channels */
41 unsigned int no_autosendcmd:1; /* don't execute autosendcmd */
42 unsigned int unix_socket:1; /* Connect using named unix socket */
43 unsigned int use_tls:1; /* this connection uses TLS */
44 unsigned int tls_verify:1;
45 unsigned int no_connect:1; /* don't connect() at all, it's done by plugin */
46 char *channels;
47 char *away_reason;
48