The first problem was somehow fixed by removing xxx from that line of code,
so it goes handler.register_service('service)', which is weird. But the
second problem was not resolved.
On Wed, May 17, 2017 at 2:15 AM Yikai Lin <[email protected]> wrote:
> Hi,
>
> I was trying to wrote an "topology" like service app that exposes APIs for
> other applications. So I started from mimicing the topology app, and I
> created the api.py, event.py and the main file service.py. I have another
> test program that basically calls the api and sends several sequential
> requests to the service app and it basically just returns a reply for the
> test program to print out. I ran into some issues:
>
> 1. I didn't put the codes under ryu's folder, I actually added my project
> path and tried to run from there, but if I added
> "handler.register_service('myapp.xxx.service')" to event.py, ryu-manager
> tried to load two services xxx/service and xxx.service and it couldn't find
> the latter
> 2. If I didn't put that code in event.py, the two apps can run, but only
> the first request was received and replied, after which an "event lost" was
> reported. I didn't spawn any new threads in the service.py, just a bunch of
> functions with decorators.
>
> So my questions will be, what will be a nice way to write a low-level
> service app and where should I place them(if that matters)? And what is the
> right way to implement that service app?
>
> Thanks a lot
> Yikai
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel