jabberd14  1.6.2
Data Fields
mio_st Struct Reference

#include <jabberd.h>

Data Fields

pool p
int fd
mio_type type
mio_state state
mio_wbq queue
mio_wbq tail
struct mio_stprev
struct mio_stnext
void * cb_arg
mio_std_cb cb
struct mio_handlers_stmh
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

Detailed Description

Representation of a managed TCP socket


Field Documentation

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().

MIO event callback argument (do not modify directly)

Referenced by _mio_raw_parser(), _mio_write_dump(), _mio_xml_parser(), mio_new(), and mio_reset().

error message on failed connects (don't free messages)

struct { ... } mio_st::flags
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().

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().

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().

IP address of the peer

Referenced by mio_ssl_starttls().

port of the peer

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().

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().

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

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

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