-
Notifications
You must be signed in to change notification settings - Fork 36
/
nuiServerApplication.h
61 lines (49 loc) · 1.02 KB
/
nuiServerApplication.h
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef _CCV_H
#define _CCV_H
#include <stdio.h>
#define _WINSOCKAPI_
#ifdef WIN32
#include <Ws2tcpip.h>
#include <Wspiapi.h>
#include <winsock2.h>
#include <windows.h>
#include <winbase.h>
#else
#include <getopt.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/queue.h>
#include <signal.h>
#ifndef WIN32
#include <sys/socket.h>
#include <unistd.h>
#include <netdb.h>
#endif
#include <iostream>
#include <sstream>
#include <string>
#include <map>
#include <algorithm>
// libevent
#include "event.h"
#include "evhttp.h"
// JSON
#include "cJSON.h"
#include "json/json.h"
// boost
//#include "boost/property_tree/json_parser.hpp"
//#include "boost/property_tree/ptree.hpp"
// NUI
#include "nuiFramework.h"
#include "nuiTree.h"
#include "nuiJsonRpcApi.h"
// assert
#include <assert.h>
#include "../../libs/nuiFramework/inc/nuiFrameworkManager.h"
#ifdef WIN32
#define SLEEP( milliseconds ) Sleep( (DWORD) milliseconds )
#else
#define SLEEP( milliseconds ) usleep( (unsigned long) (milliseconds * 1000.0) )
#endif
#endif