jabberd2  2.3.2
Data Fields
s2s_st Struct Reference

#include <s2s.h>

Data Fields

const char * id
 our id (hostname) with the router More...
 
const char * router_ip
 how to connect to the router More...
 
int router_port
 
const char * router_user
 
const char * router_pass
 
const char * router_pemfile
 
const char * router_cachain
 
const char * router_private_key_password
 
int router_default
 
mio_t mio
 mio context More...
 
sx_env_t sx_env
 sx environment More...
 
sx_plugin_t sx_ssl
 
sx_plugin_t sx_sasl
 
sx_plugin_t sx_db
 
sx_t router
 router's conn More...
 
mio_fd_t fd
 
mio_fd_t server_fd
 listening sockets More...
 
config_t config
 config More...
 
log_t log
 logging More...
 
log_type_t log_type
 log data More...
 
const char * log_facility
 
const char * log_ident
 
long long int packet_count
 packet counter More...
 
const char * packet_stats
 
int retry_init
 connect retry More...
 
int retry_lost
 
int retry_sleep
 
int retry_left
 
const char * local_ip
 ip/port to listen on More...
 
int local_port
 
const char ** origin_ips
 ip(s) to originate connections from More...
 
int origin_nips
 
const char * local_secret
 dialback secret More...
 
const char * local_pemfile
 pemfile for peer connections More...
 
const char * local_private_key_password
 private key password for local pemfile, if encrypted More...
 
const char * local_cachain
 certificate chain More...
 
int local_verify_mode
 verify-mode More...
 
xht hosts
 hosts mapping More...
 
int io_max_fds
 max file descriptors More...
 
int stanza_size_limit
 maximum stanza size More...
 
int compression
 enable Stream Compression More...
 
const char ** lookup_srv
 srvs to lookup More...
 
int lookup_nsrv
 
int resolve_aaaa
 if we resolve AAAA records More...
 
int dns_min_ttl
 dns ttl limits More...
 
int dns_max_ttl
 
int etc_hosts_ttl
 /etc/hosts ttl limits More...
 
int check_interval
 time checks More...
 
int check_queue
 
int check_invalid
 
int check_keepalive
 
int check_idle
 
int check_dnscache
 
int retry_limit
 
time_t last_queue_check
 
time_t last_invalid_check
 
time_t next_check
 
time_t next_expiry
 
int require_tls
 Apple security options. More...
 
int enable_whitelist
 
char ** whitelist_domains
 
int n_whitelist_domains
 
jqueue_t dead
 list of sx_t on the way out More...
 
jqueue_t dead_conn
 list of conn_t on the way out More...
 
int started
 this is true if we've connected to the router at least once More...
 
int online
 true if we're bound in the router More...
 
xht outq
 queues of packets waiting to go out (key is route) More...
 
int out_reuse
 reuse outgoing conns keyed by ip/port More...
 
xht out_host
 outgoing conns (key is ip/port) More...
 
xht out_dest
 outgoing conns (key is dest) More...
 
xht in
 incoming conns (key is stream id) More...
 
xht in_accept
 incoming conns prior to stream initiation (key is ip/port) More...
 
int udns_fd
 udns fds More...
 
mio_fd_t udns_mio_fd
 
xht dnscache
 dns resolution cache More...
 
int dns_cache_enabled
 
xht dns_bad
 dns resolution bad host cache More...
 
int dns_bad_timeout
 

Detailed Description

Definition at line 63 of file s2s.h.

Field Documentation

const char* s2s_st::id

our id (hostname) with the router

Definition at line 65 of file s2s.h.

Referenced by _in_packet(), _s2s_config_expand(), and s2s_router_sx_callback().

const char* s2s_st::router_ip

how to connect to the router

Definition at line 68 of file s2s.h.

Referenced by _s2s_config_expand(), and _s2s_router_connect().

int s2s_st::router_port

Definition at line 69 of file s2s.h.

Referenced by _s2s_config_expand(), and _s2s_router_connect().

const char* s2s_st::router_user

Definition at line 70 of file s2s.h.

Referenced by _s2s_config_expand(), and s2s_router_sx_callback().

const char* s2s_st::router_pass

Definition at line 71 of file s2s.h.

Referenced by _s2s_config_expand(), and s2s_router_sx_callback().

const char* s2s_st::router_pemfile

Definition at line 72 of file s2s.h.

Referenced by _s2s_config_expand(), JABBER_MAIN(), and s2s_router_sx_callback().

const char* s2s_st::router_cachain

Definition at line 73 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

const char* s2s_st::router_private_key_password

Definition at line 74 of file s2s.h.

Referenced by _s2s_config_expand(), JABBER_MAIN(), and s2s_router_sx_callback().

int s2s_st::router_default

Definition at line 75 of file s2s.h.

Referenced by _s2s_config_expand(), and s2s_router_sx_callback().

mio_t s2s_st::mio
sx_env_t s2s_st::sx_env

sx environment

Definition at line 81 of file s2s.h.

Referenced by _s2s_hosts_expand(), _s2s_router_connect(), in_mio_callback(), JABBER_MAIN(), and out_route().

sx_plugin_t s2s_st::sx_ssl
sx_plugin_t s2s_st::sx_sasl

Definition at line 83 of file s2s.h.

Referenced by JABBER_MAIN(), and s2s_router_sx_callback().

sx_plugin_t s2s_st::sx_db

Definition at line 84 of file s2s.h.

Referenced by JABBER_MAIN().

sx_t s2s_st::router
mio_fd_t s2s_st::fd

Definition at line 88 of file s2s.h.

Referenced by _s2s_router_connect(), JABBER_MAIN(), and s2s_router_sx_callback().

mio_fd_t s2s_st::server_fd

listening sockets

Definition at line 91 of file s2s.h.

Referenced by in_mio_callback(), JABBER_MAIN(), and s2s_router_sx_callback().

config_t s2s_st::config

config

Definition at line 94 of file s2s.h.

Referenced by _s2s_config_expand(), _s2s_hosts_expand(), _s2s_pidfile(), and JABBER_MAIN().

log_t s2s_st::log
log_type_t s2s_st::log_type

log data

Definition at line 100 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

const char* s2s_st::log_facility

Definition at line 101 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

const char* s2s_st::log_ident

Definition at line 102 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

long long int s2s_st::packet_count

packet counter

Definition at line 105 of file s2s.h.

Referenced by _in_sx_callback(), _out_sx_callback(), and JABBER_MAIN().

const char* s2s_st::packet_stats

Definition at line 106 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

int s2s_st::retry_init

connect retry

Definition at line 109 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

int s2s_st::retry_lost

Definition at line 110 of file s2s.h.

Referenced by _s2s_config_expand(), and s2s_router_sx_callback().

int s2s_st::retry_sleep

Definition at line 111 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

int s2s_st::retry_left

Definition at line 112 of file s2s.h.

Referenced by JABBER_MAIN(), and s2s_router_sx_callback().

const char* s2s_st::local_ip

ip/port to listen on

Definition at line 115 of file s2s.h.

Referenced by _s2s_config_expand(), and s2s_router_sx_callback().

int s2s_st::local_port

Definition at line 116 of file s2s.h.

Referenced by _s2s_config_expand(), and s2s_router_sx_callback().

const char** s2s_st::origin_ips

ip(s) to originate connections from

Definition at line 119 of file s2s.h.

Referenced by _s2s_config_expand(), and out_route().

int s2s_st::origin_nips

Definition at line 120 of file s2s.h.

Referenced by _s2s_config_expand(), and out_route().

const char* s2s_st::local_secret

dialback secret

Definition at line 123 of file s2s.h.

Referenced by _in_verify(), _out_dialback(), _s2s_config_expand(), and JABBER_MAIN().

const char* s2s_st::local_pemfile

pemfile for peer connections

Definition at line 126 of file s2s.h.

Referenced by _out_sx_callback(), _s2s_config_expand(), and JABBER_MAIN().

const char* s2s_st::local_private_key_password

private key password for local pemfile, if encrypted

Definition at line 129 of file s2s.h.

Referenced by _out_sx_callback(), _s2s_config_expand(), and JABBER_MAIN().

const char* s2s_st::local_cachain

certificate chain

Definition at line 132 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

int s2s_st::local_verify_mode

verify-mode

Definition at line 135 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

xht s2s_st::hosts

hosts mapping

Definition at line 138 of file s2s.h.

Referenced by _s2s_hosts_expand(), and JABBER_MAIN().

int s2s_st::io_max_fds

max file descriptors

Definition at line 141 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

int s2s_st::stanza_size_limit

maximum stanza size

Definition at line 144 of file s2s.h.

Referenced by _s2s_config_expand(), and in_mio_callback().

int s2s_st::compression

enable Stream Compression

Definition at line 147 of file s2s.h.

Referenced by _s2s_config_expand(), in_mio_callback(), and JABBER_MAIN().

const char** s2s_st::lookup_srv

srvs to lookup

Definition at line 150 of file s2s.h.

Referenced by _dns_result_srv(), and _s2s_config_expand().

int s2s_st::lookup_nsrv

Definition at line 151 of file s2s.h.

Referenced by _dns_result_srv(), and _s2s_config_expand().

int s2s_st::resolve_aaaa

if we resolve AAAA records

Definition at line 154 of file s2s.h.

Referenced by _dns_result_a(), _dns_result_srv(), and _s2s_config_expand().

int s2s_st::dns_min_ttl

dns ttl limits

Definition at line 157 of file s2s.h.

Referenced by _dns_result_a(), and _s2s_config_expand().

int s2s_st::dns_max_ttl

Definition at line 158 of file s2s.h.

Referenced by _dns_result_a(), and _s2s_config_expand().

int s2s_st::etc_hosts_ttl

/etc/hosts ttl limits

Definition at line 161 of file s2s.h.

Referenced by _dns_result_a(), and _s2s_config_expand().

int s2s_st::check_interval

time checks

Definition at line 164 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

int s2s_st::check_queue

Definition at line 165 of file s2s.h.

Referenced by _s2s_check_conn_routes(), _s2s_config_expand(), _s2s_time_checks(), and JABBER_MAIN().

int s2s_st::check_invalid

Definition at line 166 of file s2s.h.

int s2s_st::check_keepalive

Definition at line 167 of file s2s.h.

Referenced by _s2s_config_expand(), _s2s_time_checks(), and JABBER_MAIN().

int s2s_st::check_idle

Definition at line 168 of file s2s.h.

Referenced by _s2s_config_expand(), _s2s_time_checks(), and JABBER_MAIN().

int s2s_st::check_dnscache

Definition at line 169 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

int s2s_st::retry_limit

Definition at line 170 of file s2s.h.

Referenced by _out_mio_callback(), and _s2s_config_expand().

time_t s2s_st::last_queue_check

Definition at line 172 of file s2s.h.

time_t s2s_st::last_invalid_check

Definition at line 173 of file s2s.h.

time_t s2s_st::next_check

Definition at line 175 of file s2s.h.

Referenced by JABBER_MAIN().

time_t s2s_st::next_expiry

Definition at line 176 of file s2s.h.

Referenced by JABBER_MAIN().

int s2s_st::require_tls

Apple security options.

Definition at line 179 of file s2s.h.

Referenced by _in_sx_callback(), _out_sx_callback(), _s2s_config_expand(), and out_packet().

int s2s_st::enable_whitelist

Definition at line 180 of file s2s.h.

Referenced by _in_sx_callback(), _s2s_config_expand(), and out_packet().

char** s2s_st::whitelist_domains

Definition at line 181 of file s2s.h.

Referenced by _s2s_populate_whitelist_domains(), and s2s_domain_in_whitelist().

int s2s_st::n_whitelist_domains

Definition at line 182 of file s2s.h.

Referenced by _s2s_populate_whitelist_domains(), and s2s_domain_in_whitelist().

jqueue_t s2s_st::dead

list of sx_t on the way out

Definition at line 185 of file s2s.h.

Referenced by _out_mio_callback(), in_mio_callback(), and JABBER_MAIN().

jqueue_t s2s_st::dead_conn

list of conn_t on the way out

Definition at line 188 of file s2s.h.

Referenced by _out_mio_callback(), in_mio_callback(), and JABBER_MAIN().

int s2s_st::started

this is true if we've connected to the router at least once

Definition at line 191 of file s2s.h.

Referenced by s2s_router_sx_callback().

int s2s_st::online

true if we're bound in the router

Definition at line 194 of file s2s.h.

Referenced by s2s_router_mio_callback(), and s2s_router_sx_callback().

xht s2s_st::outq
int s2s_st::out_reuse

reuse outgoing conns keyed by ip/port

Definition at line 200 of file s2s.h.

Referenced by _out_mio_callback(), _s2s_config_expand(), _s2s_time_checks(), dns_select(), JABBER_MAIN(), and out_route().

xht s2s_st::out_host

outgoing conns (key is ip/port)

Definition at line 203 of file s2s.h.

Referenced by _out_mio_callback(), _s2s_time_checks(), dns_select(), JABBER_MAIN(), and out_route().

xht s2s_st::out_dest

outgoing conns (key is dest)

Definition at line 206 of file s2s.h.

Referenced by _out_mio_callback(), _s2s_time_checks(), JABBER_MAIN(), and out_route().

xht s2s_st::in

incoming conns (key is stream id)

Definition at line 209 of file s2s.h.

Referenced by _in_sx_callback(), _out_verify(), _s2s_time_checks(), in_mio_callback(), and JABBER_MAIN().

xht s2s_st::in_accept

incoming conns prior to stream initiation (key is ip/port)

Definition at line 212 of file s2s.h.

Referenced by _in_sx_callback(), _s2s_time_checks(), in_mio_callback(), and JABBER_MAIN().

int s2s_st::udns_fd

udns fds

Definition at line 215 of file s2s.h.

Referenced by JABBER_MAIN().

mio_fd_t s2s_st::udns_mio_fd

Definition at line 216 of file s2s.h.

Referenced by JABBER_MAIN().

xht s2s_st::dnscache

dns resolution cache

Definition at line 219 of file s2s.h.

Referenced by _s2s_dns_expiry(), _s2s_time_checks(), JABBER_MAIN(), out_resolve(), and out_route().

int s2s_st::dns_cache_enabled

Definition at line 220 of file s2s.h.

Referenced by _s2s_config_expand(), and out_resolve().

xht s2s_st::dns_bad

dns resolution bad host cache

Definition at line 223 of file s2s.h.

Referenced by _out_dns_mark_bad(), _s2s_dns_expiry(), _s2s_time_checks(), dns_select(), JABBER_MAIN(), and send_dialbacks().

int s2s_st::dns_bad_timeout

The documentation for this struct was generated from the following file: