server.h 226 B

12345678910111213141516
  1. #ifndef SERVER_H
  2. #define SERVER_H
  3. #include <pthread.h>
  4. struct buffer_array;
  5. struct server_param {
  6. int listen_port[2];
  7. int pid;
  8. };
  9. pthread_t start_server(struct server_param* tp);
  10. void accept_info_init();
  11. #endif