Audacity 3.2.0
ipc-types.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 @file ipc-types.h
6
7 @author Vitaly Sverchinsky
8
9 Part of lib-ipc library
10
11**********************************************************************/
12
13#pragma once
14
15#ifdef _WIN32
16#include <WinSock2.h>
17#include <WS2tcpip.h>
18#define CLOSE_SOCKET closesocket
19#define NFDS(x) (0)//not used on winsock2
20#else
21#include <sys/select.h>
22#include <sys/socket.h>
23#include <netinet/in.h>
24#include <unistd.h>
25#include <poll.h>
26#include <fcntl.h>
27
28#define INVALID_SOCKET -1
29#define SOCKET_ERROR -1
30#define SOCKET int
31#define CLOSE_SOCKET close
32#define NFDS(x) ((x) + 1)
33#endif