![]() |
VR-Forces Developer's Guide
|
The session ID is sent inside of a data interaction along with a VR-Forces interface message.
When VR-Forces receives a data interaction, it first looks at this session ID. If it does not match the receiver's session ID, the message is discarded immediately. Otherwise, it is passed along for further processing. If a VR-Forces interface message does not have a session ID, the message is automatically processed. (Currently, only one message does not use the session ID - DtIfVrfObjectData. These interface messages contain VR-Forces-specific object information that is useful for all VR-Forces components to have.)
The default session ID is 1. A session ID of -1 indicates that all VR-Forces content messages should be processed, regardless of session ID. A user can set the session ID using the -i command line option.
You can specify use of a session ID programmatically using the function DtSimInterfaceContent::setUseSessionId(). This flag is set on a per message basis, not message type basis.