diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-10-30 21:46:02 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-10-30 21:46:02 +0000 |
commit | 7e80640b97bbd97e8bcf5e95366f535a8bd16bfc (patch) | |
tree | f46817f2cd202427069438dda5340d61de2ac6e7 /src/or/or.h | |
parent | 57f7c852f809b9332fc7a52058a24713b1385c14 (diff) | |
download | tor-7e80640b97bbd97e8bcf5e95366f535a8bd16bfc.tar.gz tor-7e80640b97bbd97e8bcf5e95366f535a8bd16bfc.zip |
r16285@catbus: nickm | 2007-10-30 17:43:25 -0400
Implement (but do not enable) link connection version negotiation
svn:r12286
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h index 20766ac3c4..7b8da74858 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -236,9 +236,12 @@ typedef enum { #define OR_CONN_STATE_PROXY_READING 3 /** State for a connection to an OR: SSL is handshaking, not done yet. */ #define OR_CONN_STATE_HANDSHAKING 4 +/** State for a connection to an OR: We sent a VERSIONS cell and want one back + */ +#define OR_CONN_STATE_WAITING_FOR_VERSIONS 5 /** State for a connection to an OR: Ready to send/receive cells. */ -#define OR_CONN_STATE_OPEN 5 -#define _OR_CONN_STATE_MAX 5 +#define OR_CONN_STATE_OPEN 6 +#define _OR_CONN_STATE_MAX 6 #define _EXIT_CONN_STATE_MIN 1 /** State for an exit connection: waiting for response from dns farm. */ @@ -2717,10 +2720,12 @@ or_connection_t *connection_or_connect(uint32_t addr, uint16_t port, int connection_tls_start_handshake(or_connection_t *conn, int receiving); int connection_tls_continue_handshake(or_connection_t *conn); +int connection_or_set_state_open(or_connection_t *conn); void connection_or_write_cell_to_buf(const cell_t *cell, or_connection_t *conn); int connection_or_send_destroy(uint16_t circ_id, or_connection_t *conn, int reason); +int connection_or_send_netinfo(or_connection_t *conn); void cell_pack(packed_cell_t *dest, const cell_t *src); |