MGF Server
2.1
Multigaze framework server
Main Page
Classes
Files
File List
All
Classes
Functions
GDLib
include
protocol
gdproto_c2s.h
1
5
#pragma once
6
#ifndef GDPROTO_C2S_H
7
#define GDPROTO_C2S_H
8
9
#include "gdtypes.h"
10
11
//Gaze Data messages
12
#define gdClientGazeSample 251 //send new eye tracking sample
13
#define gdClientGazeFixation 252 //send new eye tracking fixation
14
#define gdClientGazeBlink 253 //send new eye tracking blink
15
16
//Client "control" messages
17
#define gdClientNickname 254 //send new nickname
18
#define gdClientDescription 255 //send new description
19
#define gdClientTxtMessage 256 //send text message
20
21
#define gdClientReg 257 //send add client to the tracking list
22
#define gdClientUnReg 258 //send remove client from the tracking list
23
#define gdClientPoke 259 //send poke
24
25
/*-----------------------------------------------------------------------------
26
* gdClientHdrMsg - Send header message that contains.
27
*
28
* This message holds source Id and amount of data entries, that follows this header.
29
* Type of the data that follows this header depend on the type of the message.
30
*/
31
struct
gdClientHdrMsg
{
32
CARD8 type;
// gdClientGazeSample | gdClientGazeFixation | gdClientGazeBlink | gdClientNickname | gdClientDescription | gdClientMessage | gdClientReg | gdClientUnReg | gdClientPoke
33
CARD8 reserved1;
34
CARD16 id;
//destination Id
35
CARD16 reserved2;
36
CARD16 count;
//amount of following data entries
37
};
38
39
#define sz_gdServerHdrMsg 8
40
41
#endif
Generated on Sat Jun 9 2012 20:28:53 for MGF Server by
1.8.1