I l @ ve RuBoard |
This chapter showed how ACE uses C++ features and the Wrapper Facade pattern to make it easier to program connection-oriented TCP/IP mechanisms correctly and portably in networked applications. We focused on ACE Socket wrapper facades that simplify the use of
The next chapter shows how these Socket wrapper facades are used to develop the first iteration of our networked logging service. The ACE Socket wrapper facades resolve the following problems with the Socket API discussed in Section 2.3:
The object-oriented design of the ACE Socket wrapper facades also makes it easy to change an application's IPC mechanism without having to modify API arguments and manually change addressing structures and functions. For example, the classes within each communication service type (stream, connected datagram, or datagram) in Figure 3.2 expose a common set of methods that allows them to be interchanged easily using generic programming techniques [Ale0l]. As described in Sidebar 5 on page 57, generic programming and the C++ trait idiom enable the wholesale replacement of functionality via parameterized types. These techniques are also applied to other ACE IPC wrapper facade classes, which are described at the ACE Web site at http://ace.ece.uci.edu. |
I l @ ve RuBoard |