Tor  0.4.7.0-alpha-dev
reasons.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 reasons.h
9  * \brief Header file for reasons.c.
10  **/
11 
12 #ifndef TOR_REASONS_H
13 #define TOR_REASONS_H
14 
15 #include "lib/net/socks5_status.h"
17 
18 const char *stream_end_reason_to_control_string(int reason);
19 const char *stream_end_reason_to_string(int reason);
21 uint8_t errno_to_stream_end_reason(int e);
22 
23 const char *orconn_end_reason_to_control_string(int r);
26 
27 const char *circuit_end_reason_to_control_string(int reason);
28 const char *socks4_response_code_to_string(uint8_t code);
29 const char *socks5_response_code_to_string(uint8_t code);
30 
32 const char *end_reason_to_http_connect_response_line(int endreason);
33 
34 #endif /* !defined(TOR_REASONS_H) */
bandwidth_weight_rule_t
Definition: node_select.h:41
int tls_error_to_orconn_end_reason(int e)
Definition: reasons.c:263
const char * stream_end_reason_to_control_string(int reason)
Definition: reasons.c:28
const char * bandwidth_weight_rule_to_string(enum bandwidth_weight_rule_t rule)
Definition: reasons.c:439
int errno_to_orconn_end_reason(int e)
Definition: reasons.c:291
const char * stream_end_reason_to_string(int reason)
Definition: reasons.c:64
socks5_reply_status_t stream_end_reason_to_socks5_response(int reason)
Definition: reasons.c:100
const char * orconn_end_reason_to_control_string(int r)
Definition: reasons.c:225
const char * end_reason_to_http_connect_response_line(int endreason)
Definition: reasons.c:461
uint8_t errno_to_stream_end_reason(int e)
Definition: reasons.c:177
const char * circuit_end_reason_to_control_string(int reason)
Definition: reasons.c:328
const char * socks4_response_code_to_string(uint8_t code)
Definition: reasons.c:393
const char * socks5_response_code_to_string(uint8_t code)
Definition: reasons.c:411
Status codes used by the SOCKS5 protocol.
socks5_reply_status_t
Definition: socks5_status.h:20