Created
November 17, 2010 04:17
-
-
Save noqisofon/702967 to your computer and use it in GitHub Desktop.
りもーとくらいあんと。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using std; | |
using runtime.remoting; | |
using runtime.remoting.channels; | |
using runtime.remoting.channels.ipc; | |
namespace sample.demo.remotingipc { | |
/* | |
* クライアント側。 | |
*/ | |
class RemoetClient { | |
static function main(args : string[]) { | |
// IPC チャンネルを作成します。 | |
let client_channel : IPCClientChannel = new IPCClientChannel(); | |
// チャンネルを登録します。 | |
ChannnelServices.registerChannel( client_channel, true ); | |
// リモートオブジェクトの型を登録します。 | |
RemotinConfiguration.registerWellKnownClientType( typeof Counter, "ipc://remote/counter" ); | |
// リモートするためのオブジェクトを作成します。 | |
let counter : Counter = new Counter(); | |
// リモートオブジェクトの内容を表示します。 | |
console.printf( "this is call number %d", counter.count ); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment