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 447B

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