20050930Dynamic Library for OpenH323

来源:互联网 发布:mysql约束类型 编辑:程序博客网 时间:2024/05/08 16:26
    Because it is too annoying to link our Virtual Space with the original Openh323 and Pwlib libraries, the best way to simplify the components is to encapsulate them into an exclusive library. Then we did it.
    Our intention is not only to simplify the library, but also to remove the dependence on pwlib and openh323. Consequently a class inherited from Openh323 doesn't satisfy us, for it need the project to include all the header files of Openh323 and pwlib.
    In conclusion, the final solution is described as follow:
        1. Create a class named CH323EndPoint inherited from H323EndPoint class of Openh323, it realizes all the functions that a terminal needs. Such as openvideochannel and openaudiochannel.
        2. Build a class named CDOCEndPoint that inherited from none. This is actually a proxy class that realizes the functions substituding for CH323EndPoint. In order to do this, we must create a instance of CH323EndPoint which does the work in CDOCEndPoint. Thus, what we need to do is only to inherit from CDOCEndPoint, which does no matter with OpenH323.
    The greatest advantage is that what the final endpoint project need to include is only the header file of CDOCEndPoint, and we could modify the interface of CDOCEndPoint so much as you need! It help us remove dependence on Pwlib library.
    And at last, we succeed! The final CDOCEndPoint library is simple enough for anybody to build a endpoint project. What's more......it does work!
原创粉丝点击