tor  0.4.1.0-alpha-dev
Functions
dircache.h File Reference

Go to the source code of this file.

Functions

int directory_handle_command (dir_connection_t *conn)
 

Detailed Description

Header file for dircache.c.

Definition in file dircache.h.

Function Documentation

◆ directory_handle_command()

int directory_handle_command ( dir_connection_t conn)

Called when a dirserver receives data on a directory connection; looks for an HTTP request. If the request is complete, remove it from the inbuf, try to process it; otherwise, leave it on the buffer. Return a 0 on success, or -1 on error.

Definition at line 1714 of file dircache.c.

References consensus_cache_entry_t::body, CONN_TYPE_DIR, connection_fetch_from_buf_http(), MAX_HEADERS_SIZE, TO_CONN, tor_assert(), and connection_t::type.

Referenced by connection_dir_process_inbuf().