net/commands.h

00001 
00002 /* Copyright (c) 2005-2009, Stefan Eilemann <eile@equalizergraphics.com> 
00003  *
00004  * This library is free software; you can redistribute it and/or modify it under
00005  * the terms of the GNU Lesser General Public License version 2.1 as published
00006  * by the Free Software Foundation.
00007  *  
00008  * This library is distributed in the hope that it will be useful, but WITHOUT
00009  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00010  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
00011  * details.
00012  * 
00013  * You should have received a copy of the GNU Lesser General Public License
00014  * along with this library; if not, write to the Free Software Foundation, Inc.,
00015  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00016  */
00017 
00018 #ifndef EQNET_COMMANDS_H
00019 #define EQNET_COMMANDS_H
00020 
00021 #include <eq/base/base.h>
00022 
00023 namespace eq
00024 {
00025 namespace net
00026 {
00027     enum NodeCommand
00028     {
00029         CMD_NODE_STOP,
00030         CMD_NODE_MESSAGE,
00031         CMD_NODE_REGISTER_SESSION,
00032         CMD_NODE_REGISTER_SESSION_REPLY,
00033         CMD_NODE_MAP_SESSION,
00034         CMD_NODE_MAP_SESSION_REPLY,
00035         CMD_NODE_UNMAP_SESSION,
00036         CMD_NODE_UNMAP_SESSION_REPLY,
00037         CMD_NODE_SESSION,
00038         CMD_NODE_CONNECT,
00039         CMD_NODE_CONNECT_REPLY,
00040         CMD_NODE_DISCONNECT,
00041         CMD_NODE_GET_NODE_DATA,
00042         CMD_NODE_GET_NODE_DATA_REPLY,
00043         CMD_NODE_ACQUIRE_SEND_TOKEN,
00044         CMD_NODE_ACQUIRE_SEND_TOKEN_REPLY,
00045         CMD_NODE_RELEASE_SEND_TOKEN,
00046         CMD_NODE_FILL1, // some buffer for binary-compatible patches
00047         CMD_NODE_FILL2,
00048         CMD_NODE_FILL3,
00049         CMD_NODE_FILL4,
00050         CMD_NODE_FILL5,
00051         CMD_NODE_CUSTOM // must be last
00052     };
00053 
00054     enum SessionCommand
00055     {
00056         CMD_SESSION_ACK_REQUEST,
00057         CMD_SESSION_GEN_IDS,
00058         CMD_SESSION_GEN_IDS_REPLY,
00059         CMD_SESSION_SET_ID_MASTER,
00060         CMD_SESSION_GET_ID_MASTER,
00061         CMD_SESSION_GET_ID_MASTER_REPLY,
00062         CMD_SESSION_ATTACH_OBJECT,
00063         CMD_SESSION_DETACH_OBJECT,
00064         CMD_SESSION_MAP_OBJECT,
00065         CMD_SESSION_SUBSCRIBE_OBJECT,
00066         CMD_SESSION_SUBSCRIBE_OBJECT_SUCCESS,
00067         CMD_SESSION_SUBSCRIBE_OBJECT_REPLY,
00068         CMD_SESSION_UNSUBSCRIBE_OBJECT,
00069         CMD_SESSION_GET_OBJECT,
00070         CMD_SESSION_FILL1, // some buffer for binary-compatible patches
00071         CMD_SESSION_FILL2,
00072         CMD_SESSION_FILL3,
00073         CMD_SESSION_FILL4,
00074         CMD_SESSION_FILL5,
00075         CMD_SESSION_CUSTOM // must be last
00076     };
00077 
00078     enum ObjectCommand
00079     {
00080         CMD_OBJECT_INSTANCE_DATA,
00081         CMD_OBJECT_INSTANCE,
00082         CMD_OBJECT_DELTA_DATA,
00083         CMD_OBJECT_DELTA,
00084         CMD_OBJECT_COMMIT,
00085         CMD_OBJECT_NEW_MASTER,
00086         CMD_OBJECT_VERSION,
00087         CMD_OBJECT_FILL1, // some buffer for binary-compatible patches
00088         CMD_OBJECT_FILL2,
00089         CMD_OBJECT_FILL3,
00090         CMD_OBJECT_FILL4,
00091         CMD_OBJECT_FILL5,
00092         CMD_OBJECT_CUSTOM // must be last
00093     };
00094 
00095     enum BarrierCommand
00096     {
00097         CMD_BARRIER_ENTER = CMD_OBJECT_CUSTOM,
00098         CMD_BARRIER_ENTER_REPLY,
00099         CMD_BARRIER_FILL1, // some buffer for binary-compatible patches
00100         CMD_BARRIER_FILL2,
00101         CMD_BARRIER_FILL3,
00102         CMD_BARRIER_FILL4,
00103         CMD_BARRIER_FILL5,
00104         CMD_BARRIER_ALL
00105     };
00106 }
00107 }
00108 
00109 #endif // EQNET_COMMANDS_H
00110 
Generated on Mon Aug 10 18:58:32 2009 for Equalizer 0.9 by  doxygen 1.5.8