summaryrefslogtreecommitdiff
path: root/src/or/rendservice.h
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2010-07-22 00:30:17 +0200
committerSebastian Hahn <sebastian@torproject.org>2010-07-27 07:56:26 +0200
commit85a1d635d5f15a49bda9f5e6588b0863d4b7b67d (patch)
tree56ad813c65baa5d0919a75a87f797c2070df2425 /src/or/rendservice.h
parent7caa8351b82c764203694dd18a33c17ba1b319e0 (diff)
downloadtor-85a1d635d5f15a49bda9f5e6588b0863d4b7b67d.tar.gz
tor-85a1d635d5f15a49bda9f5e6588b0863d4b7b67d.zip
Create rendservice.h
Diffstat (limited to 'src/or/rendservice.h')
-rw-r--r--src/or/rendservice.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/or/rendservice.h b/src/or/rendservice.h
new file mode 100644
index 0000000000..10874927e7
--- /dev/null
+++ b/src/or/rendservice.h
@@ -0,0 +1,38 @@
+/* Copyright (c) 2001 Matej Pfajfar.
+ * Copyright (c) 2001-2004, Roger Dingledine.
+ * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
+ * Copyright (c) 2007-2010, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
+
+/**
+ * \file rendservice.h
+ * \brief Header file for rendservice functions
+ **/
+
+#ifndef _TOR_RENDSERVICE_H
+#define _TOR_RENDSERVICE_H
+
+int num_rend_services(void);
+int rend_config_services(or_options_t *options, int validate_only);
+int rend_service_load_keys(void);
+void rend_services_init(void);
+void rend_services_introduce(void);
+void rend_consider_services_upload(time_t now);
+void rend_hsdir_routers_changed(void);
+void rend_consider_descriptor_republication(void);
+
+void rend_service_intro_has_opened(origin_circuit_t *circuit);
+int rend_service_intro_established(origin_circuit_t *circuit,
+ const char *request,
+ size_t request_len);
+void rend_service_rendezvous_has_opened(origin_circuit_t *circuit);
+int rend_service_introduce(origin_circuit_t *circuit, const char *request,
+ size_t request_len);
+void rend_service_relaunch_rendezvous(origin_circuit_t *oldcirc);
+int rend_service_set_connection_addr_port(edge_connection_t *conn,
+ origin_circuit_t *circ);
+void rend_service_dump_stats(int severity);
+void rend_service_free_all(void);
+
+#endif
+