[Ryu-devel] How to get data from other module.
Brought to you by:
nz_gizmoguy
|
From: muzixing.c. <151...@qq...> - 2015-08-26 03:42:26
|
Hi, all.
If I want to get some data from other module of app, what should I do?
I know we can use CONTEXT to get the app as a service, and then we can get the data in that app. But, the logic of these two app is not about producer and consumer.
The second method to get this data is using API. So, I have to build some API just like topology' API. However , I notice that Switches in topology just return the new data, if I want to write something into that data, it won't change the real data.
Obviously, use import just can get the static defined data of using methods, we can't get the data of an alive object.
So, what I need is a method to share the data between tow apps.
Thank you for your time.
------------------
Distance 李呈
_____________________________________________________
School of Information and Communication Engineering
Beijing University of Posts and Telecommunications
Beijing 100876, PR China
北京邮电大学·信息与通信工程学院·通信工程
_____________________________________________________
Mobile Phone:
(+86) 151-1698-3550 Beijing
E-mail:
350...@qq...
lic...@gm...
Homepage:
http://www.muzixing.com |