IP Media Server for HMP Demo Guide — July 2005 25
5
5.Demo Details
This chapter discusses the IP Media Server for HMP demo in more detail. It contains the following
topics:
Files Used by the Demo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Programming Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Threads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Initialization. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Event Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Typical Scenario . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
5.1 Files Used by the Demo
This section lists the files used by the IP Media Server demo. It contains the following information
Demo Source Code Files
PDL Files

5.1.1 Demo Source Code Files

In Windows, the IP Media Server demo files listed in Table3 are located within:
$(INTEL_DIALOGIC_DIR)\Demos\IPMediaServer
In Linux, the IP Media Server demo files listed in Table3 are located within:
$(INTEL_DIALOGIC_DIR)/demos/IPMediaServer
Table3. Files in IPMediaServer Folder Used by the IP Media Server Demo
Sub-Directory (if any) File Name Purpose
CConfig.cpp Implements the operations of the Configuration
class
CConfig.h Function prototype for config.cpp
CEventRouter.cpp Implements the operations of the EventRouter class
CEventRouter.h Function prototype for ceventrouter.cpp
IPMediaServer.dsp Visual C++ project file
IPMediaServer.dsw Visual C++ project workspace
main.cpp Contains the main function and the WaitForKey
main.h Function prototype for main.cpp
makefile Top-level make file (Linux only)