diff options
Diffstat (limited to 'PICA_nodeaddrlist.h')
| -rw-r--r-- | PICA_nodeaddrlist.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/PICA_nodeaddrlist.h b/PICA_nodeaddrlist.h index a674ca2..c439d42 100644 --- a/PICA_nodeaddrlist.h +++ b/PICA_nodeaddrlist.h @@ -14,7 +14,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. */ -// Описание структур и функций для работы со списком адресов узлов +// Structures and functions for working with the node address list // #ifndef PICA_NODEADDRLIST_H #define PICA_NODEADDRLIST_H @@ -57,10 +57,10 @@ struct PICA_nodeaddr_dns struct PICA_nodeaddr { - char addr[256];//макс. длина DNS имени 255 символов - int inactive_count;//кол-во зафиксированных подряд случаев недоступности узла + char addr[256];//max. DNS name length is 255 characters + int inactive_count;//number of consecutive times the node was found unreachable time_t last_active;// - in_port_t port;//номер порта - host byte order + in_port_t port;//port number - host byte order struct PICA_nodeaddr *next; }; @@ -69,7 +69,7 @@ struct PICA_nodeaddr int PICA_nodeaddr_list_load(const char* dbfilename, struct PICA_nodeaddr **list_head); int PICA_nodeaddr_save(const char* dbfilename, struct PICA_nodeaddr *naddr); int PICA_nodeaddr_update(const char* dbfilename, struct PICA_nodeaddr *naddr, int is_alive); -int PICA_nodeaddr_cleanold(const char* dbfilename, int treshold); +int PICA_nodeaddr_cleanold(const char* dbfilename, int threshold); void PICA_nodeaddr_list_free(struct PICA_nodeaddr *list_head); #endif |
