PreviousNext

Integrating C and C++ Clients and Servers

This topic has assumed your clients and servers are both written in C++, and the rest of this guide describes how to write clients and servers that are both written in C. Two fundamental differences between these types of applications are their perception of what interfaces represent and whether clients bind to servers or objects.

For C applications, the model tends to be functionally oriented. The important features are the operations, in which an interface represents a convenient set of operations with associated data structures. Clients bind to servers that support the set of operations and data.

For C++ applications, the model tends to be object oriented. In this model, the important feature is the interface itself, which represent a class of objects. Operations are an integral part of each object, but data structures tend to be hidden in the implementations on the servers and not exposed in the interface. In this model, clients bind to objects that support the interfaces.

This topic addresses the intersection of these two models in the following ways:

· Writing C++ clients with a functional approach so that they bind to servers (written in C) rather than to distributed objects

· Writing C clients so that they can bind to distributed objects rather than to servers

More:

Writing a C++ Client for C Servers

Writing a C Client for C++ Servers