Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

protocol.h File Reference

#include <string>
#include <sys/time.h>

Go to the source code of this file.

Compounds

struct  packet
struct  packet_header

Defines

#define MAX_PACKET_HEADER   5
#define CLIENT_CORE   1
 used on client side to enable the matrixThread to identify its clients (this number is for the coreThread). More...

#define CLIENT_OUTPUT   2
 used on client side to enable the matrixThread to identify its clients (this number is for the outputThread). More...

#define PROT_HANDSHAKE   1
 Handshake package. More...

#define PROT_AUTHENTICATE   2
 Authentication package. More...

#define PROT_REQUEST_MATRIX   3
 Reqeust the access-permissions to a matrix (obsolete). More...

#define PROT_KILL_CLIENT   254
 Kill signal. More...

#define PROT_MATRIX_STUFF   4
 obsolete - general matrix-access packets. More...

#define PROT_MATRIX_STUFF_REPLY   5
 obsolete - get reply from general matrix-access packtes. More...

#define PROT_REGISTER_ENTITY   6
 sent by the client to request to be registered as entity. More...

#define PROT_REGISTER_ENTITY_REPLY   7
 reply to the register request. More...

#define PROT_ADD_OBJECT   8
 add an object to the matrix. More...

#define PROT_ADD_OBJECT_REPLY   9
 the reply from the matrix thread. More...

#define PROT_GET_ALL_OBJECTS_REPLY   10
 get all objectIDs as reply from matrixthread from a get_all_changed request. More...

#define PROT_GET_ALL_ATOMS_REPLY   11
 get all atomIDs as reply from matrixthread from a get_all_changed request. More...

#define PROT_GET_OBJECT_REPLY   12
 get the object as reply from ODB_GET_OBJECT. More...

#define PROT_GET_ATOM_REPLY   13
 get the atom as reply from ODB_GET_ATOM. More...

#define PROT_GET_ALL_CHANGED   14
 request all changes that happened in the matrix since timestamp. More...

#define PROT_GET_OBJECT   15
 obsolete - get a specific object. More...

#define PROT_REQUEST_REPLY   16
 obsolete - general request reply. More...

#define PROT_ACCESS_MATRIX   17
 obsolete - access a matrix. More...

#define PROT_MATRIX_ACCESS_REPLY   18
 obsolete - reply if access was successful. More...

#define PROT_RECEIVE_OBJECT   19
 receive an object (used on client). More...

#define PROT_RECEIVE_ATOM   20
 receive an atom (used on client). More...

#define PROT_OUTPUT_VISUAL   29
 packet for output visual-plugin. More...

#define PROT_OUTPUT_DUMMY   666
 test packet - please ignor. More...

#define PROT_INPUT_MOVE   30
 move. More...

#define PROT_INPUT_ROTATE   31
 rotate. More...

#define PROT_INPUT_SPIN   32
 spin. More...

#define PROT_INPUT_SPEED   33
 speed. More...

#define PROT_SEND_MSG   40
 general message packet. More...

#define PROT_CHANGE_POSITION   41
 change position. More...

#define PROT_AVATAR_HULL   42
 the 3Dsia binary graphical description of the avatar-hull. More...

#define PROT_CHAT_MSG   43
 chat message. More...

#define PROT_TEXT_MSG   44
 normal text-message. More...

#define PROT_TURN_AVATAR_OFF   45
 my avatar visible/invisible. More...

#define INPUT_FORWARD   2
 forward. More...

#define INPUT_BACKWARD   3
 backward. More...

#define INPUT_SPIN_UP   4
 spin-up. More...

#define INPUT_SPIN_DOWN   5
 spin-down. More...

#define INPUT_ROTATE_X   6
 rotate on X-axis. More...

#define INPUT_ROTATE_Y   7
 rotate on Y-axis. More...

#define INPUT_ROTATE_Z   8
 rotate on Z-axis. More...

#define VISUAL_CAMERA_MOVE   1
 Move Camera position. More...

#define VISUAL_CAMERA_LOOKTO   2
 Change Camera-Lookto. More...

#define VISUAL_NEW_OBJECT   3
 New visual object. More...

#define VISUAL_NEW_ATOM   4
 new visual atom. More...

#define VISUAL_MY_OBJECT   5
 my own avatar. More...

#define VISUAL_TURN_AVATAR_OFF   6
 my avatar visible/invisible. More...

#define ODB_ADD_OBJECT   1
 Add an object to the matrix. More...

#define ODB_ADD_ATOM   2
 Add an atom to the matrix. More...

#define ODB_INSERT_ATOM   3
 obsolete - insert an object to the matrix (included now in add_atom). More...

#define ODB_GET_ALL_CHANGED   4
 get all changes that happened since timestamp. More...

#define ODB_GET_OBJECT   6
 get a specific object. More...

#define ODB_GET_ATOM   7
 get a specific atom. More...

#define ODB_CHANGE_ATOM   8
 obsolete - change the value of an atom (included now in add_atom). More...

#define ODB_ADD_REASON   9
 link two objects together with a reason. More...

#define ODB_REMOVE_REASON   10
 delink two objects that are connected with a reason. More...

#define ODB_TYPE_LONG   1
 atom-container long. More...

#define ODB_TYPE_STRING   2
 atom-container string. More...

#define ODB_TYPE_3DPOINT   3
 atom-container 3Dpoint (not yet implemented in ODB). More...

#define ODB_TYPE_BINARY   4
 atom-container binary. More...

#define AT_USERNAME   1
 atom-Type Username. More...

#define AT_SOCKET   2
 atom-Type Socket-Number. More...

#define AT_NETADDRESS   3
 atom-Type network address. More...

#define AT_POSITION   4
 atom-Type position (in 3D). More...

#define AT_ENTITYTYPE   5
 atom-Type type of entity. More...

#define AT_3DSIAGRAPH   6
 atom-Type 3Dsia binary graphical description. More...

#define AT_SURNAME   20
 atom-Type surename. More...

#define AT_FIRSTNAME   21
 atom-Type firstname. More...

#define AT_REALADDRESS   22
 atom-Type Real-Address. More...

#define AT_CHATMSG   23
 atom-Type ChatMessage (hopefully becomes replaced soon by some more intelligent way of handling chatting). More...

#define RT_E_PARENT_O   1
 reason-Type Entity parent of Object. More...

#define RT_E_HOLDING_O   2
 reason-Type Entity holding Object. More...

#define RT_O_PARTOF_E   3
 reason-Type Object parent of Entity. More...

#define RT_O_PARENT_O   4
 reason-Type Object parent of Object. More...

#define RT_O_ATTACHED_O   5
 reason-Type Object attached to Object. More...

#define CLT_OBJECT   1
 class-Type Object. More...

#define CLT_ENTITY   2
 class-Type Entity. More...

#define MCP_ACCESS_MATRIX   1
 obsolete. More...

#define HANDSHAKE_GREETING   1
 the hand-shake greeting identifier. More...

#define AUTH_PASSWORD   1
 using password authentication (in contrast to retina scan or voice authentication (which is unfortunately not yet implemented ;) ). More...

#define R_MATRIX_ADDRESS   1
#define R_MATRIX_INVENTORY   2
#define R_MATRIX_ACTION   3
#define R_M_INVENTORY_SYNC   1
#define R_M_ACTION_MOVE   1
 iterate further for moving objects within the matrix or to a different address/server. More...

#define R_M_ACTION_COPY   2
#define R_M_ACTION_DELETE   3


Define Documentation

#define AT_3DSIAGRAPH   6

atom-Type 3Dsia binary graphical description.

Definition at line 215 of file protocol.h.

#define AT_CHATMSG   23

atom-Type ChatMessage (hopefully becomes replaced soon by some more intelligent way of handling chatting).

Definition at line 224 of file protocol.h.

#define AT_ENTITYTYPE   5

atom-Type type of entity.

Definition at line 213 of file protocol.h.

#define AT_FIRSTNAME   21

atom-Type firstname.

Definition at line 220 of file protocol.h.

#define AT_NETADDRESS   3

atom-Type network address.

Definition at line 209 of file protocol.h.

#define AT_POSITION   4

atom-Type position (in 3D).

Definition at line 211 of file protocol.h.

#define AT_REALADDRESS   22

atom-Type Real-Address.

Definition at line 222 of file protocol.h.

#define AT_SOCKET   2

atom-Type Socket-Number.

Definition at line 207 of file protocol.h.

#define AT_SURNAME   20

atom-Type surename.

Definition at line 218 of file protocol.h.

#define AT_USERNAME   1

atom-Type Username.

Definition at line 205 of file protocol.h.

#define AUTH_PASSWORD   1

using password authentication (in contrast to retina scan or voice authentication (which is unfortunately not yet implemented ;) ).

Definition at line 282 of file protocol.h.

#define CLIENT_CORE   1

used on client side to enable the matrixThread to identify its clients (this number is for the coreThread).

Definition at line 43 of file protocol.h.

#define CLIENT_OUTPUT   2

used on client side to enable the matrixThread to identify its clients (this number is for the outputThread).

Definition at line 45 of file protocol.h.

#define CLT_ENTITY   2

class-Type Entity.

Definition at line 241 of file protocol.h.

#define CLT_OBJECT   1

class-Type Object.

Definition at line 239 of file protocol.h.

#define HANDSHAKE_GREETING   1

the hand-shake greeting identifier.

Definition at line 275 of file protocol.h.

#define INPUT_BACKWARD   3

backward.

Definition at line 135 of file protocol.h.

#define INPUT_FORWARD   2

forward.

Definition at line 133 of file protocol.h.

#define INPUT_ROTATE_X   6

rotate on X-axis.

Definition at line 141 of file protocol.h.

#define INPUT_ROTATE_Y   7

rotate on Y-axis.

Definition at line 143 of file protocol.h.

#define INPUT_ROTATE_Z   8

rotate on Z-axis.

Definition at line 145 of file protocol.h.

#define INPUT_SPIN_DOWN   5

spin-down.

Definition at line 139 of file protocol.h.

#define INPUT_SPIN_UP   4

spin-up.

Definition at line 137 of file protocol.h.

#define MAX_PACKET_HEADER   5

Definition at line 14 of file protocol.h.

#define MCP_ACCESS_MATRIX   1

obsolete.

Definition at line 268 of file protocol.h.

#define ODB_ADD_ATOM   2

Add an atom to the matrix.

Definition at line 164 of file protocol.h.

#define ODB_ADD_OBJECT   1

Add an object to the matrix.

Definition at line 162 of file protocol.h.

#define ODB_ADD_REASON   9

link two objects together with a reason.

Definition at line 180 of file protocol.h.

#define ODB_CHANGE_ATOM   8

obsolete - change the value of an atom (included now in add_atom).

Definition at line 177 of file protocol.h.

#define ODB_GET_ALL_CHANGED   4

get all changes that happened since timestamp.

Definition at line 169 of file protocol.h.

#define ODB_GET_ATOM   7

get a specific atom.

Definition at line 174 of file protocol.h.

#define ODB_GET_OBJECT   6

get a specific object.

Definition at line 172 of file protocol.h.

#define ODB_INSERT_ATOM   3

obsolete - insert an object to the matrix (included now in add_atom).

Definition at line 166 of file protocol.h.

#define ODB_REMOVE_REASON   10

delink two objects that are connected with a reason.

Definition at line 182 of file protocol.h.

#define ODB_TYPE_3DPOINT   3

atom-container 3Dpoint (not yet implemented in ODB).

Definition at line 198 of file protocol.h.

#define ODB_TYPE_BINARY   4

atom-container binary.

Definition at line 200 of file protocol.h.

#define ODB_TYPE_LONG   1

atom-container long.

Definition at line 194 of file protocol.h.

#define ODB_TYPE_STRING   2

atom-container string.

Definition at line 196 of file protocol.h.

#define PROT_ACCESS_MATRIX   17

obsolete - access a matrix.

Definition at line 91 of file protocol.h.

#define PROT_ADD_OBJECT   8

add an object to the matrix.

Definition at line 70 of file protocol.h.

#define PROT_ADD_OBJECT_REPLY   9

the reply from the matrix thread.

Definition at line 72 of file protocol.h.

#define PROT_AUTHENTICATE   2

Authentication package.

Definition at line 52 of file protocol.h.

#define PROT_AVATAR_HULL   42

the 3Dsia binary graphical description of the avatar-hull.

Definition at line 122 of file protocol.h.

#define PROT_CHANGE_POSITION   41

change position.

Definition at line 120 of file protocol.h.

#define PROT_CHAT_MSG   43

chat message.

Definition at line 125 of file protocol.h.

#define PROT_GET_ALL_ATOMS_REPLY   11

get all atomIDs as reply from matrixthread from a get_all_changed request.

Definition at line 77 of file protocol.h.

#define PROT_GET_ALL_CHANGED   14

request all changes that happened in the matrix since timestamp.

Definition at line 84 of file protocol.h.

#define PROT_GET_ALL_OBJECTS_REPLY   10

get all objectIDs as reply from matrixthread from a get_all_changed request.

Definition at line 75 of file protocol.h.

#define PROT_GET_ATOM_REPLY   13

get the atom as reply from ODB_GET_ATOM.

Definition at line 81 of file protocol.h.

#define PROT_GET_OBJECT   15

obsolete - get a specific object.

Definition at line 87 of file protocol.h.

#define PROT_GET_OBJECT_REPLY   12

get the object as reply from ODB_GET_OBJECT.

Definition at line 79 of file protocol.h.

#define PROT_HANDSHAKE   1

Handshake package.

Definition at line 50 of file protocol.h.

#define PROT_INPUT_MOVE   30

move.

Definition at line 108 of file protocol.h.

#define PROT_INPUT_ROTATE   31

rotate.

Definition at line 110 of file protocol.h.

#define PROT_INPUT_SPEED   33

speed.

Definition at line 114 of file protocol.h.

#define PROT_INPUT_SPIN   32

spin.

Definition at line 112 of file protocol.h.

#define PROT_KILL_CLIENT   254

Kill signal.

Definition at line 56 of file protocol.h.

#define PROT_MATRIX_ACCESS_REPLY   18

obsolete - reply if access was successful.

Definition at line 93 of file protocol.h.

#define PROT_MATRIX_STUFF   4

obsolete - general matrix-access packets.

Definition at line 60 of file protocol.h.

#define PROT_MATRIX_STUFF_REPLY   5

obsolete - get reply from general matrix-access packtes.

Definition at line 62 of file protocol.h.

#define PROT_OUTPUT_DUMMY   666

test packet - please ignor.

Definition at line 105 of file protocol.h.

#define PROT_OUTPUT_VISUAL   29

packet for output visual-plugin.

Definition at line 103 of file protocol.h.

#define PROT_RECEIVE_ATOM   20

receive an atom (used on client).

Definition at line 97 of file protocol.h.

#define PROT_RECEIVE_OBJECT   19

receive an object (used on client).

Definition at line 95 of file protocol.h.

#define PROT_REGISTER_ENTITY   6

sent by the client to request to be registered as entity.

Definition at line 65 of file protocol.h.

#define PROT_REGISTER_ENTITY_REPLY   7

reply to the register request.

Definition at line 67 of file protocol.h.

#define PROT_REQUEST_MATRIX   3

Reqeust the access-permissions to a matrix (obsolete).

Definition at line 54 of file protocol.h.

#define PROT_REQUEST_REPLY   16

obsolete - general request reply.

Definition at line 89 of file protocol.h.

#define PROT_SEND_MSG   40

general message packet.

Definition at line 117 of file protocol.h.

#define PROT_TEXT_MSG   44

normal text-message.

Definition at line 127 of file protocol.h.

#define PROT_TURN_AVATAR_OFF   45

my avatar visible/invisible.

Definition at line 129 of file protocol.h.

#define RT_E_HOLDING_O   2

reason-Type Entity holding Object.

Definition at line 229 of file protocol.h.

#define RT_E_PARENT_O   1

reason-Type Entity parent of Object.

Definition at line 227 of file protocol.h.

#define RT_O_ATTACHED_O   5

reason-Type Object attached to Object.

Definition at line 235 of file protocol.h.

#define RT_O_PARENT_O   4

reason-Type Object parent of Object.

Definition at line 233 of file protocol.h.

#define RT_O_PARTOF_E   3

reason-Type Object parent of Entity.

Definition at line 231 of file protocol.h.

#define R_MATRIX_ACTION   3

Definition at line 293 of file protocol.h.

#define R_MATRIX_ADDRESS   1

Definition at line 289 of file protocol.h.

#define R_MATRIX_INVENTORY   2

Definition at line 291 of file protocol.h.

#define R_M_ACTION_COPY   2

Definition at line 309 of file protocol.h.

#define R_M_ACTION_DELETE   3

Definition at line 311 of file protocol.h.

#define R_M_ACTION_MOVE   1

iterate further for moving objects within the matrix or to a different address/server.

Definition at line 307 of file protocol.h.

#define R_M_INVENTORY_SYNC   1

Definition at line 300 of file protocol.h.

#define VISUAL_CAMERA_LOOKTO   2

Change Camera-Lookto.

Definition at line 150 of file protocol.h.

#define VISUAL_CAMERA_MOVE   1

Move Camera position.

Definition at line 148 of file protocol.h.

#define VISUAL_MY_OBJECT   5

my own avatar.

Definition at line 156 of file protocol.h.

#define VISUAL_NEW_ATOM   4

new visual atom.

Definition at line 154 of file protocol.h.

#define VISUAL_NEW_OBJECT   3

New visual object.

Definition at line 152 of file protocol.h.

#define VISUAL_TURN_AVATAR_OFF   6

my avatar visible/invisible.

Definition at line 158 of file protocol.h.


Generated at Sat May 13 13:50:22 2000 for 3Dsia by doxygen 1.1.2 written by Dimitri van Heesch, © 1997-2000