tor  0.4.2.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-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
12 #ifndef TOR_ROUTERINFO_H
13 #define TOR_ROUTERINFO_H
14 
15 void router_get_prim_orport(const routerinfo_t *router,
16  tor_addr_port_t *addr_port_out);
17 int router_has_orport(const routerinfo_t *router,
18  const tor_addr_port_t *orport);
19 
21 
22 const char *router_purpose_to_string(uint8_t p);
23 uint8_t router_purpose_from_string(const char *s);
24 
25 #endif /* !defined(TOR_ROUTERINFO_H) */
const char * router_purpose_to_string(uint8_t p)
Definition: routerinfo.c:54
uint8_t router_purpose_from_string(const char *s)
Definition: routerinfo.c:69
smartlist_t * router_get_all_orports(const routerinfo_t *ri)
Definition: routerinfo.c:39
void router_get_prim_orport(const routerinfo_t *router, tor_addr_port_t *addr_port_out)
Definition: routerinfo.c:18