2016-09-15 04:29:22 +02:00
|
|
|
/**
|
|
|
|
* Author......: See docs/credits.txt
|
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _DISPATCH_H
|
|
|
|
#define _DISPATCH_H
|
|
|
|
|
2018-10-28 16:47:13 +01:00
|
|
|
#ifdef WITH_BRAIN
|
|
|
|
#if defined (_WIN)
|
|
|
|
#include <winsock.h>
|
|
|
|
#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 23:37:30 +02:00
|
|
|
HC_API_CALL void *thread_calc_stdin (void *p);
|
|
|
|
HC_API_CALL void *thread_calc (void *p);
|
2016-09-15 04:29:22 +02:00
|
|
|
|
|
|
|
#endif // _DISPATCH_H
|