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!
1万+




被折叠的 条评论
为什么被折叠?



