CIGI API Version 2.7.1 
CIGI API : Users' Guide
Examples : Win32 Multi-Session Host

Examples

Windows Multi-Session Host Example

The multi-session host is a sample of how to use multiple CIGI sessions from an application. One session is used to moitor and print outgoing CIGI packets, while the other is used for incoming packets.

In addition, it illustrates the use of CIGI callback functions to process packets. This example is a console-based application, and will display the incoming and outgoing packets on the screen.

To run the DummyIG sample application from a command line, the following arguments are expceted.

HostDemo <ip address> <send port> <receive port>

Where the arguments are as follows:

  • ip address: The IP address of a CIGI image generator to connect to.
  • send port: The port number to use for sending packets to the CIGI image generator.
  • receive port: The port number to use for receiving pacekts from the CIGI image generator.

The following listing shows the files from the HostDemo example, including the Visual C++ 6.0 project and workspace files for Windows development.

cigi
CIGI home folder.
api
CIGI API source files.
cigi_api.h
Core API header.
cigi_api.c
Core API implementation.
cigi_helper.h
CIGI API utility header.
cigi_helper.c
CIGI API utility implementation.
cigi_icd.h
The CIGI interface header.
samples
CIGI sample applications.
HostDemo
Windows/GUI sample of a host implementation.
HostDemo.dep
Visual C++ 6.0 dependency file (Win32).
HostDemo.dsp
Visual C++ 6.0 project file (Win32).
HostDemo.dsw
Visual C++ 6.0 workspace file (Win32).
HostDemo.mak
Visual C++ 6.0 make file (Win32).
HostDemo.cpp
Host demo implementation.
 
SourceForge LogoBoeing
******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ********