Ffrpc php client lib

Source: Internet
Author: User

Abstract:

Ffrpc is a c ++ asynchronous communication library. Using ffrpc can easily build server programs. For ease of use, ffrpc provides the python and php client lib, so that the server built using php in c ++ is also easy to use. Ffrpc uses thrift or protobuf as the communication protocol, which makes it easy to implement ffrpc client lib in different languages.

Example:

This example uses php + thrift and ffrpc echo server communication, echo server implementation details can refer to http://www.cnblogs.com/zhiranok/p/ffrpc_client_server.html

Thrift's definition file is:

::

Use ffrpc-php to call the echo interface:

"Ff/Types. php" =-> data = 'ohnice !!!! '= Ffrpc_t (' 127. 0.0.1 ', 10246 (-> call ('echo', 'ff '("error_msg :". -> error_msg (). "\ n"
Summary:
  • Ffrpc currently supports c ++, python, and server
  • Protocols support protocolbuf and thrift
  • Github: https://github.com/fanchy/FFRPC

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.