16#ifndef TOR_ORCONN_EVENT_H
17#define TOR_ORCONN_EVENT_H
29#define OR_CONN_STATE_MIN_ 1
31#define OR_CONN_STATE_CONNECTING 1
33#define OR_CONN_STATE_PROXY_HANDSHAKING 2
36#define OR_CONN_STATE_TLS_HANDSHAKING 3
39#define OR_CONN_STATE_TLS_CLIENT_RENEGOTIATING 4
43#define OR_CONN_STATE_TLS_SERVER_RENEGOTIATING 5
47#define OR_CONN_STATE_OR_HANDSHAKING_V2 6
51#define OR_CONN_STATE_OR_HANDSHAKING_V3 7
53#define OR_CONN_STATE_OPEN 8
54#define OR_CONN_STATE_MAX_ 8
60 OR_CONN_EVENT_LAUNCHED = 0,
61 OR_CONN_EVENT_CONNECTED = 1,
62 OR_CONN_EVENT_FAILED = 2,
63 OR_CONN_EVENT_CLOSED = 3,
64 OR_CONN_EVENT_NEW = 4,
98#ifdef ORCONN_EVENT_PRIVATE
Header for OO publish-subscribe functionality.
#define DECLARE_MESSAGE(messagename, typename, c_ptr_type)