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