|
jabberd14
1.6.2
|
#include <jabberd.h>
Data Fields | |
| pool | p |
| int | fd |
| mio_type | type |
| mio_state | state |
| mio_wbq | queue |
| mio_wbq | tail |
| struct mio_st * | prev |
| struct mio_st * | next |
| void * | cb_arg |
| mio_std_cb | cb |
| struct mio_handlers_st * | mh |
| xstream | xs |
| XML_Parser | parser |
| xmlnode | stacknode |
| void * | ssl |
| struct { | |
| int root:1 | |
| int rated:1 | |
| int reset_stream:1 | |
| int recall_read_when_readable:1 | |
| int recall_read_when_writeable:1 | |
| int recall_write_when_readable:1 | |
| int recall_write_when_writeable:1 | |
| int recall_handshake_when_readable:1 | |
| int recall_handshake_when_writeable:1 | |
| } | flags |
| struct karma | k |
| jlimit | rate |
| char * | peer_ip |
| uint16_t | peer_port |
| char * | our_ip |
| uint16_t | our_port |
| char * | connect_errmsg |
| char * | authed_other_side |
| xmppd::ns_decl_list * | out_ns |
| xmppd::ns_decl_list * | in_root |
| xmppd::ns_decl_list * | in_stanza |
| const char * | root_lang |
Representation of a managed TCP socket
if the other side of the stream is authenticated, the identity can be placed here
Referenced by dialback_in_read(), and dialback_in_read_db().
MIO event callback (do not modify directly)
Referenced by _mio_raw_parser(), _mio_write_dump(), _mio_xml_parser(), mio_new(), and mio_reset().
| void* mio_st::cb_arg |
MIO event callback argument (do not modify directly)
Referenced by _mio_raw_parser(), _mio_write_dump(), _mio_xml_parser(), mio_new(), and mio_reset().
| char* mio_st::connect_errmsg |
error message on failed connects (don't free messages)
| int mio_st::fd |
file descriptor of the socket
Referenced by _dialback_beat_idle(), _dialback_beat_in_idle(), _dialback_beat_out_idle(), _dialback_miod_hash_cleanup(), _mio_raw_read(), _mio_raw_write(), _mio_ssl_read(), _mio_ssl_write(), _mio_tls_cont_handshake_server(), _mio_write_dump(), dialback_in_read(), dialback_in_read_db(), dialback_miod_hash(), dialback_out_read(), mio_new(), mio_ssl_starttls(), and xmppd::proxy65::socks5stub::socks5stub().
| struct { ... } mio_st::flags |
Referenced by _mio_ssl_read(), _mio_ssl_write(), _mio_tls_cont_handshake_server(), _mio_xml_parser(), mio_rate(), mio_ssl_starttls(), and mio_xml_reset().
| xmppd::ns_decl_list* mio_st::in_root |
pointer to the namespaces declared on the incoming root element
Referenced by _mio_xstream_cleanup(), dialback_in_read(), and dialback_out_read().
| xmppd::ns_decl_list* mio_st::in_stanza |
pointer to the namespaces declared on the currently recevied stanza
Referenced by _mio_xstream_cleanup().
| struct karma mio_st::k |
karma for this socket, used to limit bandwidth of a connection
Referenced by mio_karma(), mio_karma2(), and mio_ssl_starttls().
| struct mio_handlers_st* mio_st::mh |
MIO internal handlers (for reading, writing, setting up TLS layers)
Referenced by _mio_tls_cont_handshake_server(), _mio_write_dump(), mio_set_handlers(), and mio_ssl_starttls().
| struct mio_st * mio_st::next |
pointers to the previous and next item, if a list of mio_st elements is build
Referenced by mio_stop().
| char* mio_st::our_ip |
our own IP address
Referenced by _mio_ssl_accepted(), mio_listen(), and mio_ssl_starttls().
| uint16_t mio_st::our_port |
port of us
| xmppd::ns_decl_list* mio_st::out_ns |
pointer to the namespaces declared on the outgoing stream root element
Referenced by _mio_xstream_cleanup(), mio_write(), and mio_write_root().
| pool mio_st::p |
memory pool for data with the same lifetime as the socket
Referenced by _mio_xstream_init(), dialback_in_read_db(), dialback_miod_hash(), dialback_miod_new(), mio_listen(), mio_new(), and mio_ssl_starttls().
| XML_Parser mio_st::parser |
sax instance used for this mio socket if we layer an XML stream on top of it
Referenced by _mio_xml_parser(), _mio_xstream_cleanup(), and _mio_xstream_init().
| char* mio_st::peer_ip |
IP address of the peer
Referenced by mio_ssl_starttls().
| uint16_t mio_st::peer_port |
port of the peer
| struct mio_st* mio_st::prev |
write buffer queue
Referenced by _mio_write_dump(), mio_cleanup(), and mio_write().
| jlimit mio_st::rate |
what is the rate if ::flags.rated is set
Referenced by mio_rate().
| int mio_st::rated |
0 = no rating for this socket, 1 = socket is rate limited (see ::rate)
Referenced by mio_rate().
recall the handshake function, when the socket has data available for reading
Referenced by _mio_tls_cont_handshake_server(), and mio_ssl_starttls().
recall the handshake function, when the socket allows writing again
Referenced by _mio_tls_cont_handshake_server(), and mio_ssl_starttls().
recall the read function, when the socket has data available for reading
Referenced by _mio_ssl_read().
recall the read function, when the socket has data available for writing
Referenced by _mio_ssl_read().
recall the write function, when the socket has data available for reading
Referenced by _mio_ssl_write().
recall the write function, when the socket allows writing again
Referenced by _mio_ssl_write().
set to 1, if stream has to be resetted
Referenced by _mio_xml_parser(), and mio_xml_reset().
| int mio_st::root |
0 = waiting for the stream root tag, 1 = stream root tag already received
Referenced by _mio_xml_parser().
| const char* mio_st::root_lang |
declared language of the incoming stream root element
| void* mio_st::ssl |
TLS layer instance for this managed socket (either GNU TLS or OpenSSL)
Referenced by _mio_ssl_read(), _mio_ssl_write(), _mio_tls_cont_handshake_server(), dialback_check_settings(), mio_is_encrypted(), mio_ssl_starttls(), mio_ssl_starttls_possible(), mio_ssl_verify(), mio_tls_get_certtype(), mio_tls_get_characteristics(), and mio_tls_get_compression().
| xmlnode mio_st::stacknode |
the stanza that is currently received
Referenced by _mio_xstream_CDATA(), and _mio_xstream_cleanup().
state of this manages socket, used to flag a socket that it needs to be closed
Referenced by mio_close(), and mio_new().
the last buffer queue item
Referenced by _mio_write_dump(), mio_cleanup(), and mio_write().
listen (server) socket or normal (client) socket
Referenced by _mio_xml_parser(), mio_listen(), mio_new(), and mio_write().
| xstream mio_st::xs |
1.7.6.1