dcrud
0.0.0
Distributed data and services
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
socket.h
Go to the documentation of this file.
1
#pragma once
2
#ifdef __cplusplus
3
extern
"C"
{
4
#endif
5
6
#ifdef _WIN32
7
# define WIN32_LEAN_AND_MEAN
8
# include <winsock2.h>
9
# include <ws2tcpip.h>
10
# include <mswsock.h>
11
#elif __linux__
12
# include <sys/socket.h>
13
# include <netinet/in.h>
14
# include <netinet/ip.h>
15
# include <arpa/inet.h>
16
# include <string.h>
17
# define SOCKET int
18
# define INVALID_SOCKET (-1)
19
#endif
20
21
#ifdef __cplusplus
22
}
23
#endif
inc
io
socket.h
Generated on Sun Jan 10 2016 19:24:07 for dcrud by
1.8.7