Example #1
0
<?php

/**********************************************************\
|                                                          |
|                          hprose                          |
|                                                          |
| Official WebSite: http://www.hprose.com/                 |
|                   http://www.hprose.org/                 |
|                                                          |
\**********************************************************/
/**********************************************************\
 *                                                        *
 * Hprose/Socket/Client.php                               *
 *                                                        *
 * hprose socket client class for php 5.3+                *
 *                                                        *
 * LastModified: Aug 6, 2016                              *
 * Author: Ma Bingyao <*****@*****.**>                  *
 *                                                        *
\**********************************************************/
require_once dirname(__DIR__) . '/lib/Client.php';
$client = new Client('tcp://192.168.102.163:1314', false);
echo $client->zys("zys");
Example #2
0
 public static function getdata()
 {
     $hprose_config = Yaf_Registry::get("config")->hprose->toArray();
     $client = new Client("tcp://" . $hprose_config['ServerIp'] . ":" . $hprose_config['port'], false);
     return $client->zys("zys");
 }