home *** CD-ROM | disk | FTP | other *** search
/ Game Programming in C++ - Start to Finish / GameProgrammingS.iso / developer_install / ReplicaNetFreewareV5_4.exe / data1.cab / Program_Executable_Files / Example8 / ReadMe.txt < prev    next >
Encoding:
Text File  |  2005-10-30  |  1000 b   |  24 lines

  1. Example 8
  2.  
  3. This example uses the ideas in Example2 but expands it to show how to call some master
  4. network functions on a selection of sessionIDs.
  5. This example also creates a ReplicaNet derived class called MyReplicaNet to enable the
  6. example to detect other session joiners.
  7.  
  8. To run this example:
  9. 1) Run the example once to begin with and the example should start. The master session
  10. will create an object and publish it and then wait for three other session to join.
  11.  
  12. 2) Now run the example another three times.
  13.  
  14. What you will see is in Test1.cpp: void Test1::RunTest(const int numSessionIDs,const int *sessionIDs)
  15. Two session IDs are supplied using DataBlock_Function::SetSessionIDFilter() or the
  16. macro NOMINATED_REPLICAS_FUNCTION_CALL() and when the function is called only the two
  17. nominated sessions will get the function call. Also the other session will not receive
  18. a function call because it was not nominated.
  19.  
  20.  
  21. Available project build configurations:
  22. ReleaseMT
  23. DebugMT
  24.