forked from PlusToolkit/ndicapi
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathndicapi_socket.cxx
More file actions
29 lines (24 loc) · 852 Bytes
/
ndicapi_socket.cxx
File metadata and controls
29 lines (24 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*=Plus=header=begin======================================================
Program: Plus
Copyright (c) Laboratory for Percutaneous Surgery. All rights reserved.
See License.md for details.
=========================================================Plus=header=end*/
// This file contains the platform-dependent portions of the source code
// that talk to the socket. All these methods
// are of the form ndiSocketXX().
#include <errno.h>
#include <time.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ndicapi_socket.h"
// time out period in milliseconds
#define TIMEOUT_PERIOD_MS 500
#ifdef _WIN32
#include "ndicapi_socket_win32.cxx"
#elif defined(unix) || defined(__unix__) || defined(__linux__)
#include "ndicapi_socket_unix.cxx"
#elif defined(__APPLE__)
#include "ndicapi_socket_apple.cxx"
#endif