Tor  0.4.7.0-alpha-dev
routerinfo.h
Go to the documentation of this file.
1 /* Copyright (c) 2001 Matej Pfajfar.
2  * Copyright (c) 2001-2004, Roger Dingledine.
3  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4  * Copyright (c) 2007-2021, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 /**
8  * \file routerinfo.h
9  * \brief Header file for routerinfo.c.
10  **/
11 
12 #ifndef TOR_ROUTERINFO_H
13 #define TOR_ROUTERINFO_H
14 
15 int router_get_orport(const routerinfo_t *router,
16  tor_addr_port_t *addr_port_out,
17  int family);
18 int router_has_orport(const routerinfo_t *router,
19  const tor_addr_port_t *orport);
20 
23  const routerinfo_t *ri);
24 
26 
27 const char *router_purpose_to_string(uint8_t p);
28 uint8_t router_purpose_from_string(const char *s);
29 
30 #endif /* !defined(TOR_ROUTERINFO_H) */
uint8_t router_purpose_from_string(const char *s)
Definition: routerinfo.c:113
int router_get_orport(const routerinfo_t *router, tor_addr_port_t *addr_port_out, int family)
Definition: routerinfo.c:27
smartlist_t * router_get_all_orports(const routerinfo_t *ri)
Definition: routerinfo.c:68
const struct ed25519_public_key_t * routerinfo_get_ed25519_id(const routerinfo_t *ri)
Definition: routerinfo.c:82
const char * router_purpose_to_string(uint8_t p)
Definition: routerinfo.c:98