Ignore:
Timestamp:
Jun 24, 2012, 7:42:09 PM (12 years ago)
Author:
okuma-top
Message:

totally brush up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SimpleSample/trunk/SimpleSampleOpaqueRPC/SimpleSample.cdl

    r30 r34  
    1111 *  |             |Body       |             |           |             |          |             |
    1212 *  +-------------+           +-------------+           +-------------+          +-------------+
     13 *
     14 *  * SimpleSample/SimpleSample.cdl を参照
     15 *  * rSimple, rSample リージョンに分割し、それぞれを linkunit (リンク単位) とした
     16 *  * リージョン間には、OpaqueRPCPlugin で OpaqueRPC Channel を挿入する
     17 *  * TaskMain はチャンネルオープン後、 tSimple を呼び出す
    1318 */
    1419
     
    2227import( <tSocketChannel.cdl> );
    2328
     29// シグニチャ sSample
    2430signature sSample {
    2531        ER  sayHello( [in]int32_t times );
     
    2733};
    2834
     35// セルタイプ tSample
    2936celltype tSample {
    3037        entry sSample eEnt;
    3138};
    3239
    33 [singleton,active]
     40// セルタイプ tSimple
    3441celltype tSimple {
    3542        call sSample cCall;
     
    3744};
    3845
     46// セルタイプ tTaskMain (クライアント側チャンネルをオープンするために用いる)
    3947celltype tTaskMain {
    4048        entry sTaskBody eBody;
     
    4553[linkunit]
    4654region rSample {
     55        // セル SysLog
    4756        cell tSysLog SysLog {
    4857        };
     58        // セル Kernel
    4959        cell tKernel Kernel {
    5060        };
     61        // セル Sample
    5162        cell tSample Sample {
    5263        };
     
    5768                         "PPAllocatorSize=1024,"
    5869                         "clientChannelCell= 'ClientChannel', " // クライアント側チャンネルセル名
     70                         // このオプションでは、複数結合に対応できない
     71                         // 複数結合に対応するには、複数結合可能なオプション指定とするか、SharedOpaqueRPCPlugin を用いる
     72                         // 複数結合可能なオプション指定例は test/opaqueRPC 下にサンプルコードがある
    5973)]
    6074region rSimple {
     75        // セル SysLog
    6176        cell tSysLog SysLog {
    6277        };
     78        // セル Simple
    6379        cell tSimple Simple {
    6480                cCall = rSample::Sample.eEnt;
    6581        };
     82        // セル TaskMain
    6683        cell tTaskMain TaskMain {
    6784                cBody = Simple.eBody;
    6885                cOpener = ClientChannel.eOpener;
    6986        };
    70 
     87        // セル Task
    7188        cell tTask Task {
    72                 cBody = TaskMain.eBody;
     89                cBody = TaskMain.eBody;                        //  TaskMain に変更
    7390                priority = 11;
    7491                stackSize = 1024;
Note: See TracChangeset for help on using the changeset viewer.