(This message has been automatically imported from the retired mailing list)
hi,i have a old project is developing by c,now i want to make this project to zato service,but how to make?how to create zato service in c/c++?
thank you!
(This message has been automatically imported from the retired mailing list)
hi,i have a old project is developing by c,now i want to make this project to zato service,but how to make?how to create zato service in c/c++?
thank you!
On 27/12/14 04:10, huxq wrote:
hi,i have a old project is developing by c,now i want to make this
project to zato service,but how to make?how to create zato service in c/c++?
Hi there,
it will be easiest if you create a wrapper library for your C code in
Cython [1], place the wrapper in zato_extra_paths [2] and invoke the
wrapper from a Python-based service.
Conceptually, something akin to:
from mylib import wrapper
from zato.server.service import Service
class MyService(Service):
def handle(self):
wrapper(self)
And now the ‘wrapper(self)’ call receives a Python object it can use to
read from or set properties on.
[1] http://docs.cython.org/index.html
[2]
https://zato.io/docs/admin/guide/installing-services.html#zato-extra-paths
On 27/12/14 04:10, huxq wrote:
hi,i have a old project is developing by c,now i want to make this
project to zato service,but how to make?how to create zato service in c/c++?
Hi there,
it will be easiest if you create a wrapper library for your C code in
Cython [1], place the wrapper in zato_extra_paths [2] and invoke the
wrapper from a Python-based service.
Conceptually, something akin to:
from mylib import wrapper
from zato.server.service import Service
class MyService(Service):
def handle(self):
wrapper(self)
And now the ‘wrapper(self)’ call receives a Python object it can use to
read from or set properties on.
[1] http://docs.cython.org/index.html
[2]
https://zato.io/docs/admin/guide/installing-services.html#zato-extra-paths