tor  0.4.2.1-alpha-dev
Data Structures | Typedefs | Enumerations | Functions
ocirc_event.h File Reference
#include <stdbool.h>
#include "lib/cc/torint.h"
#include "lib/pubsub/pubsub.h"

Go to the source code of this file.

Data Structures

struct  ocirc_state_msg_t
 
struct  ocirc_chan_msg_t
 
struct  ocirc_cevent_msg_t
 

Typedefs

typedef enum circuit_status_event_t circuit_status_event_t
 
typedef struct ocirc_state_msg_t ocirc_state_msg_t
 
typedef struct ocirc_chan_msg_t ocirc_chan_msg_t
 
typedef struct ocirc_cevent_msg_t ocirc_cevent_msg_t
 

Enumerations

enum  circuit_status_event_t {
  CIRC_EVENT_LAUNCHED = 0, CIRC_EVENT_BUILT = 1, CIRC_EVENT_EXTENDED = 2, CIRC_EVENT_FAILED = 3,
  CIRC_EVENT_CLOSED = 4
}
 

Functions

 DECLARE_MESSAGE (ocirc_state, ocirc_state, ocirc_state_msg_t *)
 
 DECLARE_MESSAGE (ocirc_chan, ocirc_chan, ocirc_chan_msg_t *)
 
 DECLARE_MESSAGE (ocirc_cevent, ocirc_cevent, ocirc_cevent_msg_t *)
 

Detailed Description

Header file for ocirc_event.c.

Definition in file ocirc_event.h.

Typedef Documentation

◆ circuit_status_event_t

Used to indicate the type of a circuit event passed to the controller. The various types are defined in control-spec.txt

◆ ocirc_cevent_msg_t

Message for origin circuit status event

This contains information that ends up in CIRC control protocol events.

◆ ocirc_chan_msg_t

Message when a channel gets associated to a circuit.

This doesn't always correspond to something in circuitbuild.c setting the n_chan field in the circuit. For some reason, if circuit_handle_first_hop() launches a new circuit, it doesn't set the n_chan field.

◆ ocirc_state_msg_t

Message for origin circuit state update

Enumeration Type Documentation

◆ circuit_status_event_t

Used to indicate the type of a circuit event passed to the controller. The various types are defined in control-spec.txt

Definition at line 19 of file ocirc_event.h.