Collage  1.7.0
High-performance C++ library for developing object-oriented distributed applications.
commands.h
1 
2 /* Copyright (c) 2005-2017, Stefan Eilemann <eile@equalizergraphics.com>
3  * Daniel Nachbaur <danielnachbaur@gmail.com>
4  *
5  * This file is part of Collage <https://github.com/Eyescale/Collage>
6  *
7  * This library is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU Lesser General Public License version 2.1 as published
9  * by the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
14  * details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this library; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19  */
20 
21 #ifndef CO_COMMANDS_H
22 #define CO_COMMANDS_H
23 
24 #include <lunchbox/types.h>
25 
26 namespace co
27 {
33 {
36  COMMANDTYPE_CUSTOM = 1 << 7, // !< Application-specific command
37  COMMANDTYPE_INVALID = 0xFFFFFFFFu
38 };
39 
41 {
43  CMD_NODE_MAXIMUM = 0xFFFFFFu,
45  CMD_INVALID = 0xFFFFFFFFu
46 };
47 
49 static const size_t COMMAND_MINSIZE = 256;
50 
52 static const size_t COMMAND_ALLOCSIZE = 4096; // Bigger than minSize!
53 }
54 
55 #endif // CO_COMMANDS_H
Commands for Node subclasses start here.
Definition: commands.h:42
An Object command.
Definition: commands.h:35
Object-oriented network library.
Definition: barrier.h:27
Highest allowed node command (2^24-1)
Definition: commands.h:43
A Node/LocalNode command.
Definition: commands.h:34
CommandType
The type of a Command.
Definition: commands.h:32
Commands
Definition: commands.h:40
Commands for Object subclasses start here.
Definition: commands.h:44