Thanks for your reply.
Yes, I can connect to tcp server.
But I do not know how to receive the message sent from that tcp server and
handle this message.
I only know how to sending message to tcp server.
So can you give me some advices?
Thanks.
Zhao Jun
From: [email protected]
Date: Fri, 4 Mar 2016 15:56:19 +0800
To: [email protected]
CC: [email protected]
Subject: Re: [Ryu-devel] how to connect to another tcp server in ryu
application?
Ryu App is driven by the event. So, it depend on what you want to do when
receiving event.
For example. you can connect TCP server when receiving PACKET-IN.
@set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHER)
def _packet_in_handler(self, ev):# establish TCP connection with the TCP server.
On Wed, Mar 2, 2016 at 10:02 PM, 俊 赵 <[email protected]> wrote:
Hi all,
I write a RYU application, and several openvswitch connect to it.
class OVSRouter(app_manager.RyuApp):
OFP_VERSIONS = [ofproto_v1_3.OFP_VERSION]
def __init__(self, *args, **kwargs):
super(OVSRouter, self).__init__(*args, **kwargs)
And I run this application using ryu-manager.
At the same time, I want the ryu controller connecting to another TCP server,
acting as a client, and receive data message from that server.
I didn't know how to achieve this. Does anyone have any ideas?
Thanks!
Zhao Jun
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel
--
Shuoling Deng
Dept. of Computer Science and Technology
Xi'an Jiaotong University
Xi'an, 710049, P.R. China
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel