mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Count the traffic of each listener
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Has been cancelled
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-latest) (push) Has been cancelled
C/C++ CI MacOS / ${{ matrix.target }} (macos-15) (push) Has been cancelled
C/C++ CI Windows / ${{ matrix.target }} (windows-2022) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (macos-15) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-latest) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (windows-2022) (push) Has been cancelled
C/C++ CI cmake / ubuntu-latest (wolfSSL) (push) Has been cancelled
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Has been cancelled
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-latest) (push) Has been cancelled
C/C++ CI MacOS / ${{ matrix.target }} (macos-15) (push) Has been cancelled
C/C++ CI Windows / ${{ matrix.target }} (windows-2022) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (macos-15) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-latest) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (windows-2022) (push) Has been cancelled
C/C++ CI cmake / ubuntu-latest (wolfSSL) (push) Has been cancelled
A listener counts the traffic of its clients as it is logged: bytes from servers (%I) and from clients (%O). clearstat(), which every log writer calls once a line is logged, as well as lognone and logradius, adds the counts to the client's listener before clearing them, through listenertrafficfunc, set where services have listeners and NULL in the standalone binaries. The admin services page shows them as listenertrafin and listenertrafout. The takeover case checks that they go on through three reloads. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6e12c2ce63
commit
67a73a4132
7 files changed
+56
-3
No files matched your search
@@ -406,6 +406,11 @@ extern int (*reattachfunc)(struct clientparam *param, int auth);
|
||||
int clientauth(struct clientparam *param);
|
||||
uint64_t *listenerclients(struct srvparam *srv);
|
||||
uint64_t *listenerprocessed(struct srvparam *srv);
|
||||
uint64_t *listenertrafin(struct srvparam *srv);
|
||||
uint64_t *listenertrafout(struct srvparam *srv);
|
||||
void listenertraffic(struct clientparam *param);
|
||||
/* listenertraffic() where services have listeners, NULL elsewhere */
|
||||
extern void (*listenertrafficfunc)(struct clientparam *param);
|
||||
struct passwords * copypwl (struct passwords *pwl);
|
||||
void freepwl(struct passwords *pw);
|
||||
int copyfilter(struct filter *, struct srvparam *srv);
|
||||
|
||||
Reference in new issue
Block a user