New functions to describe connections and peers.

These will let us refactor away a lot of code that currently uses
"addr" and "address" for logging purposes.
This commit is contained in:
Nick Mathewson
2020-07-13 14:35:51 -04:00
parent a7226ca06e
commit ba7816db5f
2 changed files with 153 additions and 0 deletions
+3
View File
@@ -116,6 +116,9 @@ const char *conn_type_to_string(int type);
const char *conn_state_to_string(int type, int state);
int conn_listener_type_supports_af_unix(int type);
const char *connection_describe(const connection_t *conn);
const char *connection_describe_peer(const connection_t *conn);
struct dir_connection_t *dir_connection_new(int socket_family);
struct or_connection_t *or_connection_new(int type, int socket_family);
struct edge_connection_t *edge_connection_new(int type, int socket_family);