diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-03-16 09:40:44 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-07-18 14:59:55 -0400 |
commit | 8bf0382b220b31605fb5a542f36a842bdd7a6ed0 (patch) | |
tree | 860c1909b98b9db6587f4e5a3dea14175f86665d /src/or/buffers.h | |
parent | f45e1fbd5b25735c75bed8767d9d50e279c4b63a (diff) | |
download | tor-8bf0382b220b31605fb5a542f36a842bdd7a6ed0.tar.gz tor-8bf0382b220b31605fb5a542f36a842bdd7a6ed0.zip |
Skeleton ExtORPort implementation. Needs testing, documentation.
Does not implement TransportControlPort yet.
Diffstat (limited to 'src/or/buffers.h')
-rw-r--r-- | src/or/buffers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/buffers.h b/src/or/buffers.h index 910494a874..50ac3dc3f2 100644 --- a/src/or/buffers.h +++ b/src/or/buffers.h @@ -53,6 +53,8 @@ int fetch_from_buf_line(buf_t *buf, char *data_out, size_t *data_len); int peek_buf_has_control0_command(buf_t *buf); +int fetch_ext_or_command_from_buf(buf_t *buf, ext_or_cmd_t **out); + #ifdef USE_BUFFEREVENTS int fetch_var_cell_from_evbuffer(struct evbuffer *buf, var_cell_t **out, int linkproto); @@ -68,6 +70,8 @@ int peek_evbuffer_has_control0_command(struct evbuffer *buf); int write_to_evbuffer_zlib(struct evbuffer *buf, tor_zlib_state_t *state, const char *data, size_t data_len, int done); +int fetch_ext_or_command_from_evbuffer(struct evbuffer *buf, + ext_or_cmd_t **out); #endif #ifdef USE_BUFFEREVENTS |