status_r->last_input = conn->last_input;
status_r->last_output = conn->last_output;
status_r->last_ping_msecs = conn->last_ping_msecs;
+ status_r->handshake_users_sent = conn->handshake_users_sent;
+ status_r->handshake_users_received = conn->handshake_users_received;
}
size_t bytes_buffered, peak_bytes_buffered;
struct timeval last_input, last_output;
unsigned int last_ping_msecs;
+
+ unsigned int handshake_users_received;
+ unsigned int handshake_users_sent;
};
struct director_host;
{
struct director_connection_status status;
- if (!director_connection_is_handshaked(conn))
- str_append(str, "handshaking");
- else if (director_connection_is_synced(conn))
+ director_connection_get_status(conn, &status);
+ if (!director_connection_is_handshaked(conn)) {
+ str_append(str, "handshaking - ");
+ if (director_connection_is_incoming(conn))
+ str_printfa(str, "%u USERs received", status.handshake_users_received);
+ else
+ str_printfa(str, "%u USERs sent", status.handshake_users_sent);
+ } else if (director_connection_is_synced(conn))
str_append(str, "synced");
else
str_append(str, "syncing");
- director_connection_get_status(conn, &status);
str_printfa(str, "\t%u\t%"PRIuUOFF_T"\t%"PRIuUOFF_T"\t%zu\t%zu\t"
"%ld\t%ld", status.last_ping_msecs,
status.bytes_read, status.bytes_sent,