Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
ryu/lib/rpc.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/ryu/lib/rpc.py b/ryu/lib/rpc.py
index 42abe70..769cc0d 100644
--- a/ryu/lib/rpc.py
+++ b/ryu/lib/rpc.py
@@ -316,3 +316,11 @@ class Client(object):
raise EOFError("EOF")
self._process_input_notification()
self._process_input_request()
+
+ def peek_notification(self):
+ while True:
+ rlist, _wlist = self._endpoint.selectable()
+ rlist, _wlist, _xlist = select.select(rlist, [], [], 0)
+ if not rlist:
+ break
+ self.receive_notification()
--
1.8.1.5
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel