Ok.
Now Im using your second exemple. Only one more question, where is a good
place to start my socket (socket = try to connect), on the __init__ or in
any specific event?
My scenario: Im running three apps in each controller, con_manager_1.py
opens a connection to the con_manager_2.
Controller 1
controller 2
socket
switch.py/role_manager.py/con_manager_1.py --------------------
con_manager_2.py/role_manager.py/switch.py
Thanks. Sorry for all these many emails : /
2014-02-14 1:51 GMT-02:00 FUJITA Tomonori <[email protected]>:
> On Thu, 13 Feb 2014 09:57:11 -0200
> Eros Spalla <[email protected]> wrote:
>
> > Hi Fujita, thanks.
> >
> > I need to open a socket between two apps in two controllers, and do that
> on
> > the controller startup. Now im using the the EventSwitchEnter to call my
> > function, but if no switches get in, no sockets get up.
> >
> > I would like to do:
> >
> > 1 - Start the controller.
> > 2 - Start the socket.
> > 3 - Run the app functions.
>
> I guess that there might be several options to do such. If I
> implemented such, then
>
> 1. Split my application into two Ryu applications (let's call
> them A and B respectively).
>
> 2. ryu-manager runs Application A.
>
> 3. A application starts a socket (I'm not sure what it means, try to
> connect?)
>
> 4. When A finishes the connection establishment, A creates B
> application.
>
> A bit complicated but possible. Our VRRP code creates Ryu
> applications dynamically:
>
> https://github.com/osrg/ryu/tree/master/ryu/services/protocols/vrrp
>
>
> Another possible (probably simpler) approach is:
>
> 2. ryu-manager runs Application A and B.
>
> 3. A application starts a socket.
>
> 4. B application doesn't start any real work and waits for
> notificaiton from A (note that from the perspective of Ryu, B
> application starts. But B does nothing except for waiting).
>
> 5. Later A sends notificaiton to B and B starts the real work.
>
>
--
*Eros S. Spalla* -
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel