​​
I am a newbie in Thrift. I have looked the documentation of Thrift, its
IDL, and code generation. It looks promising. With that being said, I want
to convert my existing server created in Boost.ASIO ( C++) to thrift server.
Currently, my server handles two types of message from client:

1) Say Client sends {"heartbeat":"true","first_fetch":"1"}. The server
checks value of "first_fetch". If its 1 then server sends {"config": "This
is config"} else
{"config_changed": "False"}

2. Clients sends {"message":"Hey Server"} then upon receiving it, server
sends {"success":"True"}.

​What I'd like to know is, Does the IDL of Thrift support this type of
message passing? How can I write a simple IDL file that can emulate the job
given above?

Thank you.​

-- 

*Sarvagya Pant*
*Kathmandu, Nepal*
*+9779803468257*

Reply via email to