net.h 599 B

12345678910111213141516171819
  1. #ifndef _konf_net_h
  2. #define _konf_net_h
  3. #include <konf/buf.h>
  4. typedef struct konf_client_s konf_client_t;
  5. #define KONFD_SOCKET_PATH "/tmp/konfd.socket"
  6. konf_client_t *konf_client_new(const char *path);
  7. void konf_client_free(konf_client_t *client);
  8. int konf_client_connect(konf_client_t *client);
  9. void konf_client_disconnect(konf_client_t *client);
  10. int konf_client_reconnect(konf_client_t *client);
  11. int konf_client_send(konf_client_t *client, char *command);
  12. int konf_client__get_sock(konf_client_t *client);
  13. konf_buf_t * konf_client_recv_data(konf_client_t * instance, konf_buf_t *buf);
  14. #endif