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.


------------------------------------------------------------------------------
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

Reply via email to