Back to index

tor  0.2.3.19-rc
reasons.h
Go to the documentation of this file.
00001 /* Copyright (c) 2001 Matej Pfajfar.
00002  * Copyright (c) 2001-2004, Roger Dingledine.
00003  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
00004  * Copyright (c) 2007-2012, The Tor Project, Inc. */
00005 /* See LICENSE for licensing information */
00006 
00012 #ifndef _TOR_REASONS_H
00013 #define _TOR_REASONS_H
00014 
00015 const char *stream_end_reason_to_control_string(int reason);
00016 const char *stream_end_reason_to_string(int reason);
00017 socks5_reply_status_t stream_end_reason_to_socks5_response(int reason);
00018 uint8_t errno_to_stream_end_reason(int e);
00019 
00020 const char *orconn_end_reason_to_control_string(int r);
00021 int tls_error_to_orconn_end_reason(int e);
00022 int errno_to_orconn_end_reason(int e);
00023 
00024 const char *circuit_end_reason_to_control_string(int reason);
00025 const char *socks4_response_code_to_string(uint8_t code);
00026 const char *socks5_response_code_to_string(uint8_t code);
00027 
00028 const char *bandwidth_weight_rule_to_string(enum bandwidth_weight_rule_t rule);
00029 
00030 #endif
00031