Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
MessageTypes.h
Go to the documentation of this file.
1/* @(#)root/base:$Id$ */
2
3/*************************************************************************
4 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#ifndef ROOT_MessageTypes
12#define ROOT_MessageTypes
13
14
15//////////////////////////////////////////////////////////////////////////
16// //
17// MessageTypes //
18// //
19// System predefined message types. Message types are constants that //
20// indicate what kind of message it is. Make sure your own message //
21// types don't clash whith the ones defined in this file. ROOT reserves //
22// all message ids between 0 - 10000. Make sure your message //
23// id < 200000000. //
24// //
25//////////////////////////////////////////////////////////////////////////
26
28 kMESS_ZIP = 0x20000000, //OR with kMESS_ZIP to compress message
29 kMESS_ACK = 0x10000000, //OR with kMESS_ACK to force each
30 //message to be acknowledged
31 kMESS_ANY = 0, //generic message type
32 kMESS_OK = 1, //everything OK
33 kMESS_NOTOK = 2, //things are NOT OK
34 kMESS_STRING = 3, //string follows
35 kMESS_OBJECT = 4, //object follows
36 kMESS_CINT = 5, //cint command follows
37 kMESS_STREAMERINFO = 6, //TStreamerInfo object follows
38 kMESS_PROCESSID = 7, //TProcessID object follows
39
40 //---- ROOTD message opcodes (2000 - 2099)
41 kROOTD_USER = 2000, //user id follows
42 kROOTD_PASS = 2001, //passwd follows
43 kROOTD_AUTH = 2002, //authorization status (to client)
44 kROOTD_FSTAT = 2003, //filename follows
45 kROOTD_OPEN = 2004, //filename follows + mode
46 kROOTD_PUT = 2005, //offset, number of bytes and buffer
47 kROOTD_GET = 2006, //offset, number of bytes
48 kROOTD_FLUSH = 2007, //flush file
49 kROOTD_CLOSE = 2008, //close file
50 kROOTD_STAT = 2009, //return rootd statistics
51 kROOTD_ACK = 2010, //acknowledgement (all OK)
52 kROOTD_ERR = 2011, //error code and message follow
53 kROOTD_PROTOCOL = 2012, //returns rootd protocol
54 kROOTD_PUTFILE = 2020, //store file
55 kROOTD_GETFILE = 2021, //retrieve file
56 kROOTD_CHDIR = 2022, //change directory
57 kROOTD_MKDIR = 2023, //make directory
58 kROOTD_RMDIR = 2024, //delete directory
59 kROOTD_LSDIR = 2025, //list directory
60 kROOTD_PWD = 2026, //pwd
61 kROOTD_MV = 2027, //rename file
62 kROOTD_RM = 2028, //delete file
63 kROOTD_CHMOD = 2029, //change permission
64 kROOTD_PROTOCOL2 = 2031, //client proto follows, returns rootd proto
65 kROOTD_BYE = 2032, //terminate rootd
66 kROOTD_CLEANUP = 2034, //cleanup things
67 kROOTD_NEGOTIA = 2037, //negotiation follows
68 kROOTD_RSAKEY = 2038, //RSA public key exchange
69 kROOTD_ENCRYPT = 2039, //an encrypted message follows
70 kROOTD_OPENDIR = 2040, //open directory
71 kROOTD_FREEDIR = 2041, //free directory
72 kROOTD_DIRENTRY = 2042, //get directory entry
73 kROOTD_ACCESS = 2043, //test Access
74 kROOTD_GETS = 2044 //multiple offset, number of byte pairs
75};
76
77#endif
EMessageTypes
@ kROOTD_RSAKEY
@ kROOTD_ENCRYPT
@ kMESS_OK
@ kROOTD_ACK
@ kROOTD_PASS
@ kROOTD_FSTAT
@ kROOTD_MKDIR
@ kMESS_STRING
@ kMESS_ANY
@ kROOTD_PWD
@ kROOTD_USER
@ kROOTD_OPEN
@ kMESS_NOTOK
@ kROOTD_LSDIR
@ kROOTD_STAT
@ kROOTD_CHMOD
@ kROOTD_BYE
@ kMESS_OBJECT
@ kROOTD_CHDIR
@ kMESS_ACK
@ kROOTD_NEGOTIA
@ kROOTD_GET
@ kROOTD_GETFILE
@ kROOTD_OPENDIR
@ kROOTD_PUT
@ kROOTD_PROTOCOL
@ kROOTD_DIRENTRY
@ kROOTD_PROTOCOL2
@ kROOTD_AUTH
@ kROOTD_MV
@ kROOTD_FREEDIR
@ kMESS_PROCESSID
@ kROOTD_ERR
@ kROOTD_CLOSE
@ kMESS_STREAMERINFO
@ kROOTD_FLUSH
@ kROOTD_RM
@ kROOTD_PUTFILE
@ kROOTD_GETS
@ kMESS_CINT
@ kROOTD_RMDIR
@ kROOTD_CLEANUP
@ kMESS_ZIP
@ kROOTD_ACCESS