Discussion:
Need example code for thrift multi-thread server in C
Steve Yau
2017-11-22 08:55:23 UTC
Permalink
Hi,

Could someone point me to an example of C implementation of mult-thread
thrift server? There are references for some other languages, but not
for C. I have written a program based on the glibc Tutorial example and
its working fine. Now I would like to turn it into a multi-thread server
to support concurrent client requests.

Appreciate any advice. Many thanks.

-Steve
Jens Geyer
2017-11-22 13:03:30 UTC
Permalink
Hi,

does the /test suite offer this maybe?

Have fun,
JensG

Sent from mobile device, please ignore spelling mistakes.
________________________________
Von: Steve Yau
Gesendet: 22.11.2017 09:55
An: ***@thrift.apache.org
Betreff: Need example code for thrift multi-thread server in C

Hi,

Could someone point me to an example of C implementation of mult-thread
thrift server? There are references for some other languages, but not
for C. I have written a program based on the glibc Tutorial example and
its working fine. Now I would like to turn it into a multi-thread server
to support concurrent client requests.

Appreciate any advice. Many thanks.

-Steve
Randy Abernethy
2017-11-22 16:42:03 UTC
Permalink
Prob could C-ify one of the C++ servers pretty easily if you are using C11.
The C++ ThreadedServer might be the easiest to start with.
Post by Jens Geyer
Hi,
does the /test suite offer this maybe?
Have fun,
JensG
Sent from mobile device, please ignore spelling mistakes.
________________________________
Von: Steve Yau
Gesendet: 22.11.2017 09:55
Betreff: Need example code for thrift multi-thread server in C
Hi,
Could someone point me to an example of C implementation of mult-thread
thrift server? There are references for some other languages, but not
for C. I have written a program based on the glibc Tutorial example and
its working fine. Now I would like to turn it into a multi-thread server
to support concurrent client requests.
Appreciate any advice. Many thanks.
-Steve
Steve Yau
2017-11-23 02:52:49 UTC
Permalink
Hi, all, thanks for the suggestions.  I will port the cpp server example
to C then.

-Steve
Post by Randy Abernethy
Prob could C-ify one of the C++ servers pretty easily if you are using C11.
The C++ ThreadedServer might be the easiest to start with.
Post by Jens Geyer
Hi,
does the /test suite offer this maybe?
Have fun,
JensG
Sent from mobile device, please ignore spelling mistakes.
________________________________
Von: Steve Yau
Gesendet: 22.11.2017 09:55
Betreff: Need example code for thrift multi-thread server in C
Hi,
Could someone point me to an example of C implementation of mult-thread
thrift server? There are references for some other languages, but not
for C. I have written a program based on the glibc Tutorial example and
its working fine. Now I would like to turn it into a multi-thread server
to support concurrent client requests.
Appreciate any advice. Many thanks.
-Steve
Loading...