X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fnetwork.h;h=1b354561ec7e8a2ab6e7a29cb1f6106445cca28f;hb=e9fb3dcaad4d46f1e594fd773f6d2327822bdddf;hp=aa3d3fcd03d3a85e040137efbf0b652eddeeefa5;hpb=a2ba56ac2dcf2b8f42bff9c047eb8e1daa3dfda7;p=collectd.git diff --git a/src/network.h b/src/network.h index aa3d3fcd..1b354561 100644 --- a/src/network.h +++ b/src/network.h @@ -1,11 +1,10 @@ /** * collectd - src/network.h - * Copyright (C) 2006 Florian octo Forster + * Copyright (C) 2005-2008 Florian octo Forster * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2 of the License, or (at your - * option) any later version. + * Free Software Foundation; only version 2 of the License is applicable. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -54,10 +53,23 @@ #define NET_DEFAULT_V4_ADDR "239.192.74.66" #define NET_DEFAULT_V6_ADDR "ff18::efc0:4a42" #define NET_DEFAULT_PORT "25826" -#define NET_DEFAULT_MC_TTL 1 -int network_create_socket (const char *node, const char *service); -int network_receive (char **host, char **type, char **instance, char **value); -int network_send (char *type, char *instance, char *value); +#define TYPE_HOST 0x0000 +#define TYPE_TIME 0x0001 +#define TYPE_TIME_HR 0x0008 +#define TYPE_PLUGIN 0x0002 +#define TYPE_PLUGIN_INSTANCE 0x0003 +#define TYPE_TYPE 0x0004 +#define TYPE_TYPE_INSTANCE 0x0005 +#define TYPE_VALUES 0x0006 +#define TYPE_INTERVAL 0x0007 +#define TYPE_INTERVAL_HR 0x0009 + +/* Types to transmit notifications */ +#define TYPE_MESSAGE 0x0100 +#define TYPE_SEVERITY 0x0101 + +#define TYPE_SIGN_SHA256 0x0200 +#define TYPE_ENCR_AES256 0x0210 #endif /* NETWORK_H */