From d2b36b901caa8c77dd88e34f03f6ea18a73e284b Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Mon, 15 Jul 2013 19:54:02 +0800 Subject: [PATCH] Update README.md --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index bdc21e2..e31523f 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,14 @@ $make && make install - yar.packager //default "php", when built with --enable-msgpack then default "msgpack", it should be one of "php", "json", "msgpack" - yar.debug //default Off + +## Constants +- YAR_VERSION +- YAR_OPT_PACKAGER +- YAR_OPT_PERSISTENT +- YAR_OPT_TIMEOUT +- YAR_OPT_CONNECT_TIMEOUT + ## Server It's very easy to setup a Yar HTTP RPC Server @@ -89,6 +97,10 @@ It's very easy for a PHP client to call remote RPC: ```php SetOpt(YAR_OPT_CONNECT_TIMEOUT, 1); + +/* call remote service */ $result = $client->api("parameter"); ?> ```