blob: 2286475f45abbae2a66ac2c4184069ad0b573ccd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
## nng_stat_find
Find statistic by name.
### Synopsis
```c
#include <nng/nng.h>
typedef struct nng_stat nng_stat;
nng_stat *nng_stat_find(nng_stat *stat, const char *name);
```
### Description
The `nng_stat_find` function searches the statistics tree _stat_, looking for a statistic whose name is _name_.
If it finds one, it returns it.
Otherwise `NULL` is returned.
NOTE: If multiple statistics have that name, then only the first match is returned.
### Return Values
The matching statistic, or NULL if no match is found.
### See Also
xref:nng_stat_child.adoc[nng_stat_child],
xref:nng_stat_find_dialer.adoc[nng_stat_find_dialer],
xref:nng_stat_find_listener.adoc[nng_stat_find_listner],
xref:nng_stat_find_socket.adoc[nng_stat_find_socket],
xref:nng_stats_get.adoc[nng_stats_get]
|