- Timestamp:
- Jun 24, 2012, 7:42:09 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SimpleSample/trunk/SimpleSampleTransparentRPC/SimpleSample.cdl
r30 r34 9 9 * | |Body | | | | 10 10 * +-------------+ +-------------+ +-------------+ 11 * 12 * * SimpleSample/SimpleSample.cdl を参照 13 * * この例では Transparent プラグインが指定される。以下の※を参照 14 * * Tranceparent プラグインのため tSysLog, rpc, tDataqueOWChannel を import 11 15 */ 12 13 16 14 17 // cygwin 用の簡易な型定義 15 18 import( <cygwin_kernel.cdl> ); 16 // TECS 対応 TOPPERS/ASP ならば import( <kernel.cdl> ); でよい19 // TECS 対応 TOPPERS/ASP ならば import( <kernel.cdl> ); に相当する 17 20 21 // tSysLog の定義 18 22 import( <tSysLog.cdl> ); 23 24 // SysLog の定義 (RPC のエラーメッセージ出力) 25 cell tSysLog SysLog { 26 }; 27 28 // RPC 関連のセルタイプの定義 19 29 import( <rpc.cdl> ); 30 // Transparent RPC に用いる Dataqueue OneWay チャンネルセルタイプの定義 20 31 import( <tDataqueueOWChannel.cdl> ); 21 32 33 // シグニチャ sSample 22 34 signature sSample { 23 35 ER sayHello( [in]int32_t times ); … … 25 37 }; 26 38 39 // セルタイプ tSample 27 40 celltype tSample { 28 41 entry sSample eEnt; 29 42 }; 30 43 31 [singleton,active] 44 // セルタイプ tSimple 32 45 celltype tSimple { 33 46 call sSample cCall; … … 35 48 }; 36 49 37 cell tSysLog SysLog { 38 }; 39 50 // セル Sample 40 51 cell tSample Sample { 41 52 }; 42 53 54 // セル Simple 43 55 cell tSimple Simple { 44 [through(RPCPlugin,"")] 56 [through(RPCPlugin,"")] // <<< ※ この行を挿入 45 57 cCall = Sample.eEnt; 46 58 }; 47 59 60 // セル Task 48 61 cell tTask Task { 49 62 cBody = Simple.eBody;
Note:
See TracChangeset
for help on using the changeset viewer.