MCPcopy Create free account
hub / github.com/mininet/mininet / isReadable

Function isReadable

mininet/cli.py:497–503  ·  view source on GitHub ↗

Check whether a Poll object has a readable fd.

( poller )

Source from the content-addressed store, hash-verified

495# Helper functions
496
497def isReadable( poller ):
498 "Check whether a Poll object has a readable fd."
499 for fdmask in poller.poll( 0 ):
500 mask = fdmask[ 1 ]
501 if mask & POLLIN:
502 return True
503 return False

Callers 1

waitForNodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected