jabberd2  2.2.17
Data Fields
s2s_st Struct Reference

#include <s2s.h>

Data Fields

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

Detailed Description

Definition at line 60 of file s2s.h.


Field Documentation

char* s2s_st::id

our id (hostname) with the router

Definition at line 62 of file s2s.h.

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

char* s2s_st::router_ip

how to connect to the router

Definition at line 65 of file s2s.h.

Referenced by _s2s_config_expand(), and _s2s_router_connect().

int s2s_st::router_port

Definition at line 66 of file s2s.h.

Referenced by _s2s_config_expand(), and _s2s_router_connect().

char* s2s_st::router_user

Definition at line 67 of file s2s.h.

Referenced by _s2s_config_expand(), and s2s_router_sx_callback().

char* s2s_st::router_pass

Definition at line 68 of file s2s.h.

Referenced by _s2s_config_expand(), and s2s_router_sx_callback().

char* s2s_st::router_pemfile

Definition at line 69 of file s2s.h.

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

int s2s_st::router_default

Definition at line 70 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 76 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 78 of file s2s.h.

Referenced by JABBER_MAIN(), and s2s_router_sx_callback().

sx_plugin_t s2s_st::sx_db

Definition at line 79 of file s2s.h.

Referenced by JABBER_MAIN().

sx_t s2s_st::router
mio_fd_t s2s_st::fd

Definition at line 83 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 86 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 89 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 95 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

char* s2s_st::log_facility

Definition at line 96 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

char* s2s_st::log_ident

Definition at line 97 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

long long int s2s_st::packet_count

packet counter

Definition at line 100 of file s2s.h.

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

char* s2s_st::packet_stats

Definition at line 101 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

int s2s_st::retry_init

connect retry

Definition at line 104 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

int s2s_st::retry_lost

Definition at line 105 of file s2s.h.

Referenced by _s2s_config_expand(), and s2s_router_sx_callback().

int s2s_st::retry_sleep

Definition at line 106 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

int s2s_st::retry_left

Definition at line 107 of file s2s.h.

Referenced by JABBER_MAIN(), and s2s_router_sx_callback().

char* s2s_st::local_ip

ip/port to listen on

Definition at line 110 of file s2s.h.

Referenced by _s2s_config_expand(), and s2s_router_sx_callback().

int s2s_st::local_port

Definition at line 111 of file s2s.h.

Referenced by _s2s_config_expand(), and s2s_router_sx_callback().

char** s2s_st::origin_ips

ip(s) to originate connections from

Definition at line 114 of file s2s.h.

Referenced by _s2s_config_expand(), and out_route().

int s2s_st::origin_nips

Definition at line 115 of file s2s.h.

Referenced by _s2s_config_expand(), and out_route().

char* s2s_st::local_secret

dialback secret

Definition at line 118 of file s2s.h.

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

char* s2s_st::local_pemfile

pemfile for peer connections

Definition at line 121 of file s2s.h.

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

char* s2s_st::local_cachain

certificate chain

Definition at line 124 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

int s2s_st::local_verify_mode

verify-mode

Definition at line 127 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

xht s2s_st::hosts

hosts mapping

Definition at line 130 of file s2s.h.

Referenced by _s2s_hosts_expand(), and JABBER_MAIN().

int s2s_st::io_max_fds

max file descriptors

Definition at line 133 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

int s2s_st::stanza_size_limit

maximum stanza size

Definition at line 136 of file s2s.h.

Referenced by _s2s_config_expand(), and in_mio_callback().

int s2s_st::compression

enable Stream Compression

Definition at line 139 of file s2s.h.

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

char** s2s_st::lookup_srv

srvs to lookup

Definition at line 142 of file s2s.h.

Referenced by _dns_result_srv(), and _s2s_config_expand().

int s2s_st::lookup_nsrv

Definition at line 143 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 146 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 149 of file s2s.h.

Referenced by _dns_result_a(), and _s2s_config_expand().

int s2s_st::dns_max_ttl

Definition at line 150 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 153 of file s2s.h.

Referenced by _dns_result_a(), and _s2s_config_expand().

int s2s_st::check_interval

time checks

Definition at line 156 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

int s2s_st::check_queue

Definition at line 157 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 158 of file s2s.h.

int s2s_st::check_keepalive

Definition at line 159 of file s2s.h.

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

int s2s_st::check_idle

Definition at line 160 of file s2s.h.

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

int s2s_st::check_dnscache

Definition at line 161 of file s2s.h.

Referenced by _s2s_config_expand(), and JABBER_MAIN().

int s2s_st::retry_limit

Definition at line 162 of file s2s.h.

Referenced by _out_mio_callback(), and _s2s_config_expand().

time_t s2s_st::last_queue_check

Definition at line 164 of file s2s.h.

time_t s2s_st::last_invalid_check

Definition at line 165 of file s2s.h.

time_t s2s_st::next_check

Definition at line 167 of file s2s.h.

Referenced by JABBER_MAIN().

time_t s2s_st::next_expiry

Definition at line 168 of file s2s.h.

Referenced by JABBER_MAIN().

int s2s_st::require_tls

Apple security options.

Definition at line 171 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 172 of file s2s.h.

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

char** s2s_st::whitelist_domains

Definition at line 173 of file s2s.h.

Referenced by _s2s_populate_whitelist_domains(), and s2s_domain_in_whitelist().

int s2s_st::n_whitelist_domains

Definition at line 174 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 177 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 180 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 183 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 186 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 192 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 195 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 198 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 201 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 204 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 207 of file s2s.h.

Referenced by JABBER_MAIN().

mio_fd_t s2s_st::udns_mio_fd

Definition at line 208 of file s2s.h.

Referenced by JABBER_MAIN().

xht s2s_st::dnscache

dns resolution cache

Definition at line 211 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 212 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 215 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: