tor  0.4.2.0-alpha-dev
control_proto.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_CONTROL_PROTO_H
13 #define TOR_CONTROL_PROTO_H
14 
15 void connection_write_str_to_buf(const char *s, control_connection_t *conn);
17  const char *format, ...)
18  CHECK_PRINTF(2,3);
19 
20 size_t write_escaped_data(const char *data, size_t len, char **out);
21 size_t read_escaped_data(const char *data, size_t len, char **out);
23 
24 MOCK_DECL(void, control_write_reply, (control_connection_t *conn, int code,
25  int c, const char *s));
26 void control_vprintf_reply(control_connection_t *conn, int code, int c,
27  const char *fmt, va_list ap)
28  CHECK_PRINTF(4, 0);
29 void control_write_endreply(control_connection_t *conn, int code,
30  const char *s);
32  const char *fmt, ...)
33  CHECK_PRINTF(3, 4);
34 void control_write_midreply(control_connection_t *conn, int code,
35  const char *s);
37  const char *fmt,
38  ...)
39  CHECK_PRINTF(3, 4);
41  const char *s);
43  const char *fmt,
44  ...)
45  CHECK_PRINTF(3, 4);
46 void control_write_data(control_connection_t *conn, const char *data);
47 
48 #endif /* !defined(TOR_CONTROL_PROTO_H) */
void control_printf_datareply(control_connection_t *conn, int code, const char *fmt,...)
void control_vprintf_reply(control_connection_t *conn, int code, int c, const char *fmt, va_list ap)
void void control_write_endreply(control_connection_t *conn, int code, const char *s)
void control_printf_endreply(control_connection_t *conn, int code, const char *fmt,...)
void send_control_done(control_connection_t *conn)
void void control_write_datareply(control_connection_t *conn, int code, const char *s)
void connection_write_str_to_buf(const char *s, control_connection_t *conn)
Definition: control_proto.c:30
void control_printf_midreply(control_connection_t *conn, int code, const char *fmt,...)
void size_t write_escaped_data(const char *data, size_t len, char **out)
Definition: control_proto.c:69
void void control_write_midreply(control_connection_t *conn, int code, const char *s)
void void control_write_data(control_connection_t *conn, const char *data)
size_t read_escaped_data(const char *data, size_t len, char **out)
void connection_printf_to_buf(control_connection_t *conn, const char *format,...)
Definition: control_proto.c:39