2000-08-26 15:39:44 +00:00
|
|
|
/* SERVER_CONNECT_REC definition, used for inheritance */
|
|
|
|
|
|
2000-09-01 00:26:46 +00:00
|
|
|
int type; /* module_get_uniq_id("SERVER CONNECT", 0) */
|
|
|
|
|
int chat_type; /* chat_protocol_lookup(xx) */
|
2000-08-26 15:39:44 +00:00
|
|
|
|
2001-10-21 13:59:07 +00:00
|
|
|
int refcount;
|
|
|
|
|
|
2000-08-26 15:39:44 +00:00
|
|
|
/* if we're connecting via proxy, or just NULLs */
|
|
|
|
|
char *proxy;
|
|
|
|
|
int proxy_port;
|
2002-01-22 20:29:45 +00:00
|
|
|
char *proxy_string, *proxy_string_after, *proxy_password;
|
2000-08-26 15:39:44 +00:00
|
|
|
|
2001-02-09 21:26:50 +00:00
|
|
|
unsigned short family; /* 0 = don't care, AF_INET or AF_INET6 */
|
2019-12-09 22:47:59 -05:00
|
|
|
unsigned short chosen_family; /* family actually chosen during name resolution */
|
2001-06-08 21:19:08 +00:00
|
|
|
char *tag; /* try to keep this tag when connected to server */
|
2000-08-26 15:39:44 +00:00
|
|
|
char *address;
|
|
|
|
|
int port;
|
|
|
|
|
char *chatnet;
|
|
|
|
|
|
2015-09-22 21:59:17 +02:00
|
|
|
IPADDR *own_ip4, *own_ip6;
|
2000-08-26 15:39:44 +00:00
|
|
|
|
|
|
|
|
char *password;
|
|
|
|
|
char *nick;
|
|
|
|
|
char *username;
|
|
|
|
|
char *realname;
|
|
|
|
|
|
2016-10-16 13:46:58 +02:00
|
|
|
char *tls_cert;
|
|
|
|
|
char *tls_pkey;
|
|
|
|
|
char *tls_pass;
|
|
|
|
|
char *tls_cafile;
|
|
|
|
|
char *tls_capath;
|
|
|
|
|
char *tls_ciphers;
|
2016-10-16 14:39:00 +02:00
|
|
|
char *tls_pinned_cert;
|
|
|
|
|
char *tls_pinned_pubkey;
|
2003-11-16 17:53:55 +00:00
|
|
|
|
2002-05-19 14:43:16 +00:00
|
|
|
GIOChannel *connect_handle; /* connect using this handle */
|
|
|
|
|
|
2000-08-26 15:39:44 +00:00
|
|
|
/* when reconnecting, the old server status */
|
2004-01-19 17:52:08 +00:00
|
|
|
unsigned int reconnection:1; /* we're trying to reconnect a connected server */
|
|
|
|
|
unsigned int reconnecting:1; /* we're trying to reconnect any connection */
|
2001-11-19 14:02:27 +00:00
|
|
|
unsigned int no_autojoin_channels:1; /* don't autojoin any channels */
|
2011-11-21 21:27:58 +00:00
|
|
|
unsigned int no_autosendcmd:1; /* don't execute autosendcmd */
|
2002-05-19 14:43:16 +00:00
|
|
|
unsigned int unix_socket:1; /* Connect using named unix socket */
|
2016-10-16 13:46:58 +02:00
|
|
|
unsigned int use_tls:1; /* this connection uses TLS */
|
|
|
|
|
unsigned int tls_verify:1;
|
2002-12-04 11:39:31 +00:00
|
|
|
unsigned int no_connect:1; /* don't connect() at all, it's done by plugin */
|
2019-12-09 22:47:59 -05:00
|
|
|
unsigned short last_failed_family; /* #641: if we failed to connect to ipv6, try ipv4 and vice versa */
|
2000-08-26 15:39:44 +00:00
|
|
|
char *channels;
|
|
|
|
|
char *away_reason;
|