Introduction Manual Class Reference Header Reference

zoidcom_control.h File Reference


Detailed Description

Go to the source code of this file.

Classes

class  ZCom_Control
 Network host. More...

Class Flags

Flags used with ZCom_Control::ZCom_registerClass().

#define ZCOM_CLASSFLAG_ANNOUNCEDATA   (1L << 0)
 Indicate the use of additional data when replicating a node of this class.


Define Documentation

#define ZCOM_CLASSFLAG_ANNOUNCEDATA   (1L << 0)
 

Indicate the use of additional data when replicating a node of this class.

Each node of this class has a custom bitstream that is sent along with the announcement to each client. This bitstream will be received by ZCom_Control::ZCom_cbNodeRequest_Dynamic() or ZCom_Control::ZCom_cbNodeRequest_Tag(). Use it to pass additional data to clients. Data they need for creating the announced object.

When this flag is set on a class, the server expects the data to be available on a node when it tries to replicate it. Set the data with ZCom_Node::setAnnounceData().

The flag must be set on all systems, since existence of this data is not explicitely embedded into the network stream, but implicated only be the use of this flag.

You can set the data for each target client indivually by implementing ZCom_NodeReplicationInterceptor::outPreReplicateNode(), which will get called directly before Zoidcom replicates the node in question. Inside this interceptor callback, ZCom_Node::setAnnounceData() can be called to change the announce data right before Zoidcom uses it.


This file is part of the documentation for Zoidcom. Documentation copyright © 2004-2008 by Jörg Rüppel. Generated on Sat Aug 16 15:26:49 2008 for Zoidcom by doxygen 1.4.6-NO