SADB-Client
0.99
Situational Awareness Database
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
SADB-Client
SADB.h
1
#ifndef __SADB__
2
#define __SADB__
3
4
#ifdef WIN32
5
#ifndef WINDOWS
6
#define WINDOWS //if compiling with MSVC++
7
#endif
8
#else
9
#define POSIX //if compiling on a posix system
10
#endif
11
12
//Common C Includes
13
#include <stdlib.h>
14
#include <stdio.h>
15
#include <stdarg.h>
16
#include <string.h>
17
#include <sys/timeb.h>
18
#include <math.h>
19
20
#ifdef POSIX
21
#include <unistd.h>
22
#include <sys/time.h>
23
#include <sys/stat.h>
24
#include <sys/types.h>
25
#include <sys/socket.h>
26
#include <netinet/in.h>
27
#include <netinet/tcp.h>
28
#include <arpa/inet.h>
29
#include <netdb.h>
30
#include <fcntl.h>
31
32
#define INVALID_SOCKET -1
33
#define SOCKET_ERROR -1
34
35
#include "NanoTimer.h"
36
37
#endif
38
39
40
extern
"C"
{
41
//#include <png.h>//Windows: Make sure you the png.h file is in your path
42
#include <pthread.h>
43
}
44
45
#ifdef WIN32
46
#include <winsock2.h>
47
#include <ws2tcpip.h>
48
#pragma comment(lib,"Ws2_32.lib")
49
#endif
50
51
namespace
SADB
{
52
53
#define SADBPort 8081
54
#define SADBAddress "192.168.1.10"
55
56
typedef
long
long
unsigned
int
Pointer;
//size of a memory address (long for 64 bits system, int for 32 bit systems) this is needed for MSVC++ to compile
57
58
//Type Definitions
59
typedef
unsigned
char
SADBu8;
60
typedef
signed
char
SADBs8;
61
typedef
unsigned
short
SADBu16;
62
typedef
signed
short
SADBs16;
63
typedef
unsigned
int
SADBu32;
64
typedef
signed
int
SADBs32;
65
typedef
unsigned
long
long
int
SADBu64;
66
typedef
signed
long
long
int
SADBs64;
67
typedef
float
SADBfl;
68
typedef
double
SADBdfl;
69
70
enum
BODataType { BOByte=0x00, BOInteger=0x01, BOFloat=0x02, BODouble=0x03 };
//For now...
71
72
73
#include "Basics.h"
74
#include "Timestamp.h"
75
#include "Network.h"
76
#include "NetPackets.h"
77
#include "BlackboardObject.h"
78
#include "Blackboard.h"
79
#include "BlackboardObjectListener.h"
80
81
#include "SpecializedClasses/SADBStringTable.h"
82
83
}
84
85
#endif //__SADB_
86
87
SADB
Definition:
SADB.h:51
Generated on Wed Dec 10 2014 21:32:09 for SADB-Client by
1.8.8