![]() |
Use this task to add the include statements and global declarations needed to the source file for a CORBA server main code. This task is one step of the parent task to create the CORBA server main code, as described in Creating a CORBA server main code (server.cpp).
To add include statements and global statements to the source file for a CORBA server main code, edit the server source file, servantServer.cpp, and add appropriate statements:
#include "servant.ih" #include "servershutdown.h" #include <CosNaming.hh>
Where:
// Global declarations: static ::CORBA::ORB_ptr op; static ::CORBA::BOA_ptr bp; ::CORBA::ImplementationDef_ptr imp ; servant_var object_Impl;
Where:
You can add the code for the functions needed in the server main code, as described in the parent task Creating a CORBA server main code (server.cpp).
Related tasks... | |
Parent: Creating a CORBA server main code (server.cpp) | |
Related concepts... | |
The CORBA programming model | |
The CORBA server programming model | |