Mercurial > dovecot > core-2.2
comparison src/director/director-connection.h @ 22627:bcb064465b54
director: Add director_connection_get_status()
Can be used to access connection-specific status information.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Thu, 26 Oct 2017 13:07:30 +0300 |
parents | ade6dcace5cd |
children | 8623737c0129 |
comparison
equal
deleted
inserted
replaced
22626:989dcf906522 | 22627:bcb064465b54 |
---|---|
1 #ifndef DIRECTOR_CONNECTION_H | 1 #ifndef DIRECTOR_CONNECTION_H |
2 #define DIRECTOR_CONNECTION_H | 2 #define DIRECTOR_CONNECTION_H |
3 | |
4 struct director_connection_status { | |
5 uoff_t bytes_read, bytes_sent; | |
6 size_t bytes_buffered, peak_bytes_buffered; | |
7 struct timeval last_input, last_output; | |
8 }; | |
3 | 9 |
4 struct director_host; | 10 struct director_host; |
5 struct director; | 11 struct director; |
6 | 12 |
7 struct director_connection * | 13 struct director_connection * |
29 director_connection_get_minor_version(struct director_connection *conn); | 35 director_connection_get_minor_version(struct director_connection *conn); |
30 | 36 |
31 void director_connection_cork(struct director_connection *conn); | 37 void director_connection_cork(struct director_connection *conn); |
32 void director_connection_uncork(struct director_connection *conn); | 38 void director_connection_uncork(struct director_connection *conn); |
33 | 39 |
40 void director_connection_get_status(struct director_connection *conn, | |
41 struct director_connection_status *status_r); | |
42 | |
34 #endif | 43 #endif |