libfuncs is collection of code (list, queue, circular buffer, io, logging, etc.). https://georgi.unixsol.org/programs/libfuncs/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

server.h 371B

12345678910111213141516171819202122
  1. /*
  2. * Server functions
  3. * Copyright (C) 2006-2010 Unix Solutions Ltd.
  4. */
  5. #ifndef SERVER_H
  6. # define SERVER_H
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. #include <arpa/inet.h>
  11. #include <netinet/in.h>
  12. void daemonize(char *pidfile);
  13. void init_server_socket(char *bind_addr, int bind_port, struct sockaddr_in *server, int *server_socket);
  14. #ifdef __cplusplus
  15. }
  16. #endif
  17. #endif