青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

posts - 14,  comments - 51,  trackbacks - 0
 
在分析ACE的原碼時發(fā)現(xiàn)有一種平時比較少見的調(diào)用方式,記得以前有人用C++描述Command時也用了這種方式,不過他們的代碼都包裝為模板,不方便理解.這里,我不用模板簡單的展示其特點:
#include <iostream>
using namespace std;
 
class CA
{
public:
    CA()
    {
        cc 
= 1;
    };
    
    
int func1(int a, int x)
    {
        cout
<<"func1"<<endl;
        
        cc 
= a + x;
        cout
<<"cc is :"<< cc <<endl;
        
return cc;
    }
    
int func2(int a, int y)
    {
        cout
<<"func2"<<endl;
        cc 
= cc + a * y;
        cout
<<"cc is:"<<cc<<endl;
        
return cc;
    }

    typedef 
int (CA::*FUNC)(int a, int y);

    
int Test1() 
    {
        FUNC f;
        f 
= &CA::func2;

        
return (this->*f) (1020);         
    }
    
    
int test2(FUNC func,int a, int b)
    {
        //ACE中是先做一些共同的復雜的事,然后調(diào)用不同的func部分:
        
return (this->*func)(a,b);
    }
private:
    
int cc;
};
 
int main( void )
{
    CA a;
    a.Test1();
    a.test2(
&CA::func2,11,3); 
    
return 0;
}

很酷!調(diào)用者可以把類的函數(shù)作為參數(shù)傳遞.
好再開下面,利用繼承的關(guān)系,我們還可以做到同樣效果:
#include <iostream>
using namespace std;
class CB
{
public:
    
virtual int func1(int a, int x)=0;
    
virtual int func2(int a, int x)=0;
    typedef 
int (CB::*FUNC)(int a, int y);

    
int Test1() 
    {
        FUNC f;
        f 
= &CB::func2;
        
return (this->*f) (1020);         
    }
    
    
int test2(FUNC func,int a, int b)
    {
        
return (this->*func)(a,b);
    }
};    

class CA:public CB
{
public:
    CA()
    {
        cc 
= 1;
    };
    
    
int func1(int a, int x)
    {
        cout
<<"func1"<<endl;
        
        cc 
= a + x;
        cout
<<"cc is :"<< cc <<endl;
        
return cc;
    }
    
int func2(int a, int y)
    {
        cout
<<"func2"<<endl;
        cc 
= cc + a * y;
        cout
<<"cc is:"<<cc<<endl;
        
return cc;
    }

    
private:
    
int cc;
};
 
int main( void )
{
    CB 
*pB = new CA();     
    pB
->Test1();
    pB
->test2(&CB::func2,11,3); 
    delete pB;
    
return 0;
}
上面的例子如果應用到Command模式中,func1 和func2就可以分別是Execute 跟 UnDo的接口了.至于如何實現(xiàn),就是派生類的問題了.
(上述代碼均在MinGW中測試通過)
 

posted @ 2009-02-25 17:32 名羽 閱讀(1723) | 評論 (3)編輯 收藏
前兩個月,公司對我們部門動大手術(shù)了。把軟件研發(fā)部分成了3大塊,分別是:系統(tǒng)工程與架構(gòu)部,開發(fā)部,測試部。由于以前在團隊里基本所有架構(gòu)方面的事都有我參與,所以,這次上頭有意問我有沒做架構(gòu)方面工作的想法。我理想當然答應這份差事。于是,被提到系統(tǒng)架構(gòu)師的崗位上。這段時間,經(jīng)過公司培訓,才發(fā)現(xiàn)做系統(tǒng)架構(gòu)師其實真不簡單,負的責任比我原來想的大多了。另外,自己技術(shù)方面的素養(yǎng)也必須盡快提高,覺得自己應在以下方面多下功夫:
       1.領(lǐng)域內(nèi)的知識面的擴展。
       2.軟件構(gòu)建的基礎(chǔ)知識的鞏固。
       3.行業(yè)內(nèi)新的設(shè)計思想及技術(shù)的認知。
       4.公司產(chǎn)品的發(fā)展方向及價值觀也需關(guān)心。
總的說來,為適應新的工作,我需要:多學,多問,多研究,多動手,多關(guān)心,多參與。
posted @ 2008-12-02 13:45 名羽 閱讀(272) | 評論 (1)編輯 收藏
在概要設(shè)計時,發(fā)現(xiàn)參與討論的人對什么是模塊,模塊的劃分根據(jù)是什么的認識有很大的差異。
我也不敢亂下定論,還是看看書本是怎么說的:
---------------------------------------------------
1 .參考一下《軟件架構(gòu)藝術(shù)》一書,Stephen T. Albin  在里面描述:

Modules are discrete units of software (binary and source). Binary modules are instantiated at run time and these instantiations are commonly called components and connectors. A given module may contain the specifications for several component types and connector types. The component (instances) may be of a fixed number in some situations. For example, a Web server executable, when launched, results in a single Web server component instance. The Web server module is the binary code that exists as a set of program files. The Web server component is a running instance of the Web server.

I have seen some confusion over the use of the terms module, component, and connector. A module is a discrete unit of design that is composed of a hidden set of elements and a set of shared elements. Modules have high internal cohesion and low external coupling. Modules may represent the physical packaging of the application's binary code, which can be described further by component types and connector types. Components and connectors describe the physical instantiation of a system. The term component is often used to mean a component type or module. A module refers to a unit of software that can be designed, implemented, and compiled into a deliverable executable system or subsystem; it is a unit of execution. A component is a runtime entity, the definition of which exists in a module. A classic modular architecture is a client-server system. The client and the server are two modules. The server exports some elements such as a set of publicly visible relational database tables and views. The client knows about this publicly visible schema. The client and server are unaware of the internal composition of the other.

那么按紅色部分來說,如果說一個dll或一個Exe里由多少個模塊組成這將是的笑話了。
2 .參考Mary shaw的《軟件體系結(jié)》:
    模塊式軟件被劃分成獨立命名的,并可被獨立訪問的成分。模塊劃分,粒度可大可小。劃分依據(jù)是對應用邏輯結(jié)構(gòu)的理解。
這個定義,似乎有沒有《軟件架構(gòu)藝術(shù)》那么嚴格。沒有定義具體什么為“被獨立訪問”的成分。
3. 《Documenting_Software_Architectures》
   A module tends to refer first and foremost to a design-time entity. Parnas's foundational work in module design (1972) used information hiding as the criterion for allocating responsibility to a module. Information that was likely to change over the lifetime of a system, such as the choice of data structures or algorithms, was assigned to a module, which had an interface through which its facilities were accessed.
    其說,模塊是設(shè)計時的實體,特點是信息隱藏和能通過模塊的接口訪問。在介紹模塊視圖時他說:
    A module is a code unit that implements a set of responsibilities. A module can be a class, a collection of classes, a layer, or any decomposition of the code unit. Every module has a collection of properties assigned to it. These properties are intended to express the important information associated with the module, as well as constraints on the module. Sample properties are responsibilities, visibility information, and author. Modules have relations to one another. Example relations are is part of or inherits from.
---------------------------------------------------

不同的作者有不同的看法,但綜合一下,我認為模塊因該是一個獨立設(shè)計的單元,并為其他模塊提供訪問接口。也就是說,他是一個架構(gòu)中的設(shè)計元素,但不限制他的存在模式,也就是他是提供了可訪問接口而且實現(xiàn)某一功能的一個實體,可以是一個類或一組類或可執(zhí)行程序等。
  

posted @ 2008-12-02 11:21 名羽 閱讀(344) | 評論 (0)編輯 收藏
今天是年二十八,一年又要過去了。明天就可以放假休息了。下班前抽空做下年度總結(jié)。今年我主要集中精力在h323上,更確切的說是在OPenh323上。雖說我不算聰明,但這一年的研究還是有點收獲的,主要在以下方面:
1 對現(xiàn)有opneh323不支持的h.264的加入。
    雖然不是很按標準,用的是常規(guī)視頻能力來加入的,但也算是在視頻的清晰度上有所提高。
2 根據(jù)需要自己建立多條對應的h323邏輯通道來傳送自己的數(shù)據(jù)。邏輯通道可以是rtp也可以是TCP。
3 用h323協(xié)商邏輯通道的方式來建立自定義的RTP通道。現(xiàn)在這種方式用在GIPS的RTP上效果還真不錯!


posted @ 2008-02-04 15:29 名羽 閱讀(410) | 評論 (0)編輯 收藏

H323SIP果然難于共存。Openh323原有的開發(fā)者也將分為兩大塊:

OPAL VOIP: 保留Opal現(xiàn)有H323功能,但重點明顯是要向兼容SIP方向發(fā)展;其網(wǎng)站介紹為:

OPAL implements the commonly used protocols used to send voice, video and fax data over IP networks. Originally part of the OpenH323 project, OpalVoip has grown to include SIP and IAX2.

h323plus:在原有OpenH323基礎(chǔ)上繼續(xù)完善ITUH323系列的協(xié)議,其介紹為:

            The H.323 Plus project intends to do much more than simply provide a new home for open source H.323 developers. Developers have told us they intend to work to provide significant new enhancements to the very successful H.323 systems deployed worldwide. For example, NAT/FW traversal, instant messaging, presence, and many other enhancements are already in progress or being planned. Further, the open source community has expressed interest to us to enable more collaborative features to H.323, including such things as application sharing, whiteboarding, and other capabilities.(可惜,這些功能OPAL將不能用到了)

 

至于底層的pwlib(即ptlib)估計暫時還會保持一致。



分家后期郵件列表也將分開:

https://lists.sourceforge.net/lists/listinfo/opalvoip-devel

 

http://lists.packetizer.com/mailman/listinfo/h323plus

 

 

網(wǎng)站地址分別:

http://www.h323plus.org/

http://www.opalvoip.org/

 

對于我們可能會更關(guān)心OpenH323的主要開發(fā)者 Simon 的以下言論:  

The following projects are currently planned to be supported within H323plus.

OpenMCU (including remote conference controls) OpenAM  (upgraded to support VoiceMail support to GnuGk) MyPhone OhPhone

 

The Library is almost drop-in replacable with the existing OpenH323 and contains numerous enhancements including video plugins (compatible with

Opal) and large amount of new work not currently supported in Opal.

 

Some of the new work now available in h323plus H.230  Conference Controls (incl tunneling GCC (T.124))

H.239  Application Sharing

H.249  Extended user inputs

H.341  SNMP support

H.350  LDAP WhitePages

H.460  Numerous custom Extensibility features

        Text Messaging (working doc ITU),

        Follow Me,

        PDI (Personal Data Interchange)

H.460.9 RealTime QoS Measurements

Video Plugins (fully compatible with Opal)

H.235 Plugins (for external Biometric and smartcard authenticators) QoS Capability negotiation Conference Controls capability advertisement.

 

New work planned/proposed

H.460.presence

H.460.18/19 Nat Traversal

Video on Demand project (using H.239/H.249)

 

We can also provide full consulting service support for existing openH323 based projects as well as provide assistance in migration of these projects to h323plus.

 

posted @ 2007-10-22 09:58 名羽 閱讀(2968) | 評論 (4)編輯 收藏
研究h323 端點間通過多通道發(fā)送數(shù)據(jù),例如MCU可以向EP用多通道來發(fā)送音視頻。這段時間我從音頻上作了測試,可以把多路音頻通過多個通道發(fā)送給EP讓EP直接在聲卡上混音,效果不錯。但(MCU-〉EP)音頻使用多通道這只是一種在網(wǎng)絡帶寬非常好的情況下的方案,因為如果用的是G.711(單路64kbit/s)就不可能在帶寬有限的公網(wǎng)上使用了。
posted @ 2007-09-29 08:57 名羽 閱讀(655) | 評論 (0)編輯 收藏
http://www.cnweblog.com/realwnc/
posted @ 2007-07-25 11:32 名羽 閱讀(367) | 評論 (0)編輯 收藏

由于與OphenH323中h263使用的ffmpeg庫沖突所以把h263也提出來另外實現(xiàn).

posted @ 2007-07-23 17:31 名羽 閱讀(2080) | 評論 (4)編輯 收藏
上頭頭腦發(fā)熱.急于讓我們在原來的視頻會議基礎(chǔ)上完成數(shù)據(jù)會議T120的大部分功能.我們被避著以很多非標準的自定協(xié)議代替T120標準中規(guī)定的東西.而且新的架構(gòu)的改動都沒有詳細分析就開始著手寫代碼了.也就是說我們開始生產(chǎn)垃圾!
鄙視領(lǐng)導者的短淺眼光!
posted @ 2007-05-11 10:35 名羽 閱讀(547) | 評論 (2)編輯 收藏
目前對Openh323的源代碼已有較多的了解,開始對部分協(xié)議進行擴展例如H245會議管理部分,4CIF的加入.另外現(xiàn)有的協(xié)議棧代碼中沒有實現(xiàn)T120通道的數(shù)字會議,目前正對該部分進行補充.
posted @ 2007-03-30 15:02 名羽 閱讀(725) | 評論 (3)編輯 收藏
僅列出標題
共2頁: 1 2 
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            蜜臀久久久99精品久久久久久 | 国产精品伊人日日| 欧美freesex8一10精品| 国产精品一二一区| 欧美一级视频精品观看| 麻豆国产精品777777在线| 亚洲国产精品电影| 欧美成人中文字幕| 在线视频精品一区| 久久国产精品久久久久久久久久| 国产日韩欧美在线| 久久一二三四| 亚洲精品激情| 一本大道久久a久久综合婷婷 | 一区二区冒白浆视频| 欧美精品在线观看| 欧美一级视频精品观看| 欧美gay视频| 亚洲一区二区三区四区视频| 国产欧美一区二区精品忘忧草| 久久久久综合一区二区三区| 最新热久久免费视频| 欧美一区二区三区视频免费| 亚洲高清一区二| 欧美无砖砖区免费| 亚洲一区日韩| 欧美日韩1区2区3区| 亚洲欧美国产精品桃花| 牛牛国产精品| 亚洲免费一在线| 欧美精品大片| 久久精品一区蜜桃臀影院| 99精品免费网| 欧美电影美腿模特1979在线看| 亚洲免费在线观看| 亚洲精品在线视频观看| 国产日韩欧美黄色| 欧美日韩系列| 欧美国产日本高清在线| 欧美一区二区高清在线观看| 一区二区三区精品久久久| 嫩草影视亚洲| 最近中文字幕mv在线一区二区三区四区| 欧美视频二区| 欧美国产三级| 米奇777在线欧美播放| 亚洲一本视频| 99国产精品久久| 最新中文字幕亚洲| 欧美不卡一卡二卡免费版| 久久九九有精品国产23| 亚洲欧美日本另类| 亚洲素人在线| 亚洲一二三区在线| 一本色道88久久加勒比精品| 亚洲国产精品小视频| 激情六月综合| 国产偷国产偷亚洲高清97cao| 欧美精品久久一区二区| 亚洲一区一卡| 亚洲欧美激情一区二区| 亚洲一区免费视频| 亚洲欧美日韩精品久久| 欧美亚洲网站| 久久精品一本| 久久久久久婷| 欧美高清在线视频观看不卡| 久久亚洲影音av资源网| 欧美国产精品v| 欧美日本成人| 国产精品社区| 激情综合电影网| 亚洲国产日韩美| 一个色综合导航| 亚洲欧美成人一区二区在线电影 | 亚洲男人av电影| 久久精品青青大伊人av| 最新日韩精品| 国产精品99久久久久久久vr| 一区二区三区国产在线| 一本一本久久a久久精品综合麻豆| 99精品视频免费观看| 亚洲制服av| 久久精品一本| 亚洲高清不卡av| 日韩视频欧美视频| 亚洲自拍偷拍麻豆| 久久国产99| 欧美大片免费观看在线观看网站推荐 | 亚洲精品永久免费| 午夜精品福利一区二区三区av | 久久久人成影片一区二区三区观看| 久久精品夜夜夜夜久久| 欧美精品二区| 国产精品久在线观看| 在线观看欧美激情| 亚洲在线视频| 亚洲夫妻自拍| 午夜视频精品| 欧美日韩国产片| 狠狠色狠狠色综合日日tαg| 亚洲激情国产| 香蕉免费一区二区三区在线观看| 免费日韩成人| 欧美在线地址| 国产精品久久久久高潮| 亚洲承认在线| 欧美亚洲日本网站| 亚洲精品四区| 毛片一区二区| 黄色日韩在线| 午夜欧美视频| 亚洲美女91| 久久国产精品99精品国产| 欧美日韩国产一区二区三区| 亚洲国产日韩欧美在线图片| 另类天堂视频在线观看| 午夜精品偷拍| 国产欧美一区视频| 久久精品国产69国产精品亚洲| 99riav国产精品| 欧美屁股在线| 9国产精品视频| 亚洲三级免费观看| 欧美日韩大片| 亚洲一区二区在线看| 日韩视频中文字幕| 欧美三级黄美女| 亚洲午夜免费福利视频| 欧美国产亚洲另类动漫| 久久久久久久久岛国免费| 欧美午夜精品久久久| 一区二区三区日韩欧美精品| 亚洲电影在线免费观看| 欧美大片在线观看| 亚洲日本中文字幕| 免播放器亚洲一区| 久久精品亚洲一区| 在线免费高清一区二区三区| 欧美一区二区| 免费亚洲网站| 欧美mv日韩mv国产网站app| 红桃视频一区| 麻豆精品一区二区av白丝在线| 午夜一区在线| 国产伦精品一区二区三区高清| 亚洲视频免费在线观看| 亚洲大胆美女视频| 午夜宅男欧美| 久久9热精品视频| 国产一区二三区| 久久综合激情| 美女露胸一区二区三区| 在线观看一区| 亚洲福利视频二区| 欧美精品在线播放| 在线国产精品播放| 亚洲高清电影| 欧美久久综合| 性欧美长视频| 久久国产主播精品| 亚洲成人在线网| 欧美影院一区| 亚洲欧美成人综合| 在线日韩欧美视频| 亚洲国产精品久久久久秋霞影院 | 欧美va天堂| 在线观看欧美日本| 亚洲欧洲在线一区| 国产精品国产三级国产a| 亚洲图片欧美一区| 午夜欧美大片免费观看| 亚洲高清视频一区| 亚洲欧洲精品一区二区三区不卡 | 久久久久久久999| 亚洲女性裸体视频| 亚洲国产精品久久久| 欧美大片在线看| 欧美日韩一区二区三区四区在线观看 | 国产精品一区二区在线| 亚洲人成亚洲人成在线观看图片| 香蕉乱码成人久久天堂爱免费| 亚洲日本一区二区| 久久亚洲精选| 蜜臀99久久精品久久久久久软件| 麻豆91精品| 免费成人黄色| 亚洲一区高清| 免费成人黄色片| 亚洲影院色在线观看免费| 久久蜜桃av一区精品变态类天堂| 一区二区精品| 亚洲婷婷综合色高清在线| 亚洲电影免费观看高清完整版在线 | 午夜久久美女| 欧美午夜精品久久久久久孕妇| 久久久久久久综合日本| 久久国产精品色婷婷| 一本色道久久加勒比88综合| 一本色道久久精品|