tor  0.4.2.1-alpha-dev
Functions
btrack_orconn_maps.h File Reference

Go to the source code of this file.

Functions

void bto_delete (uint64_t)
 
bt_orconn_t * bto_find_or_new (uint64_t, uint64_t)
 
void bto_init_maps (void)
 
void bto_clear_maps (void)
 

Detailed Description

Header file for btrack_orconn_maps.c.

Definition in file btrack_orconn_maps.h.

Function Documentation

◆ bto_clear_maps()

void bto_clear_maps ( void  )

Clear the hash maps, freeing all associated storage

Definition at line 219 of file btrack_orconn_maps.c.

References bto_chan_clear_map(), and bto_gid_clear_map().

Referenced by btrack_orconn_fini().

◆ bto_delete()

void bto_delete ( uint64_t  gid)

Delete a bt_orconn from the hash maps by GID

Definition at line 109 of file btrack_orconn_maps.c.

◆ bto_find_or_new()

bt_orconn_t* bto_find_or_new ( uint64_t  gid,
uint64_t  chan 
)

Insert a new bt_orconn with the given GID and chan ID, or update the GID and chan ID if one already exists.

Return the found or allocated bt_orconn.

Definition at line 188 of file btrack_orconn_maps.c.

References bto_new(), bto_update(), and tor_assert().

Referenced by bto_chan_rcvr(), and bto_state_rcvr().

◆ bto_init_maps()

void bto_init_maps ( void  )

Initialize the hash maps

Definition at line 209 of file btrack_orconn_maps.c.

Referenced by btrack_orconn_init().