2016-09-15 02:29:22 +00:00
|
|
|
/**
|
|
|
|
* Author......: See docs/credits.txt
|
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2023-01-30 14:41:12 +00:00
|
|
|
#ifndef HC_DISPATCH_H
|
|
|
|
#define HC_DISPATCH_H
|
2016-09-15 02:29:22 +00:00
|
|
|
|
2018-10-28 15:47:13 +00:00
|
|
|
#ifdef WITH_BRAIN
|
|
|
|
#if defined (_WIN)
|
2023-08-10 00:44:21 +00:00
|
|
|
#include <winsock2.h>
|
2018-10-28 15:47:13 +00:00
|
|
|
#define SEND_FLAGS 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (__linux__)
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <netinet/tcp.h>
|
|
|
|
#include <arpa/inet.h>
|
|
|
|
#define SEND_FLAGS MSG_NOSIGNAL
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2018-09-18 21:37:30 +00:00
|
|
|
HC_API_CALL void *thread_calc_stdin (void *p);
|
|
|
|
HC_API_CALL void *thread_calc (void *p);
|
2016-09-15 02:29:22 +00:00
|
|
|
|
2023-01-30 14:41:12 +00:00
|
|
|
#endif // HC_DISPATCH_H
|