net.h 481 B

12345678910111213141516
  1. #ifndef _net_h
  2. #define _net_h
  3. typedef struct conf_client_s conf_client_t;
  4. #define CONFD_SOCKET_PATH "/tmp/confd.socket"
  5. conf_client_t *conf_client_new(char *path);
  6. void conf_client_free(conf_client_t *client);
  7. int conf_client_connect(conf_client_t *client);
  8. void conf_client_disconnect(conf_client_t *client);
  9. int conf_client_reconnect(conf_client_t *client);
  10. int conf_client_send(conf_client_t *client, char *command);
  11. int conf_client__get_sock(conf_client_t *client);
  12. #endif