X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fnetwork.h;h=6d8e966e967d68749e0ad5bc5a4f25662c8b074e;hb=12c1e32ec71ffd5d90af5df4b430fba04d91aed5;hp=2df989b3bcf3ba4980d5d712bf1b20ae1d598ae0;hpb=601abecb59b6041e84f11877345a98efba7b651b;p=collectd.git diff --git a/src/network.h b/src/network.h index 2df989b3..6d8e966e 100644 --- a/src/network.h +++ b/src/network.h @@ -4,8 +4,7 @@ * * 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 @@ -55,8 +54,13 @@ #define NET_DEFAULT_V6_ADDR "ff18::efc0:4a42" #define NET_DEFAULT_PORT "25826" -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_PLUGIN 0x0002 +#define TYPE_PLUGIN_INSTANCE 0x0003 +#define TYPE_TYPE 0x0004 +#define TYPE_TYPE_INSTANCE 0x0005 +#define TYPE_VALUES 0x0006 +#define TYPE_INTERVAL 0x0007 #endif /* NETWORK_H */