Skip to content

Instantly share code, notes, and snippets.

@noqisofon
Created November 17, 2010 04:17
Show Gist options
  • Save noqisofon/702967 to your computer and use it in GitHub Desktop.
Save noqisofon/702967 to your computer and use it in GitHub Desktop.
りもーとくらいあんと。
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