powered by
net_listening returns true if client is actively listening for network connections.
net_listening
true
net_listening()
Boolean - true when listening, otherwise false.
false
Other net functions: gethr, net_peerCount, net_version
gethr
net_peerCount
net_version
# NOT RUN { net_listening() # } # NOT RUN { # }
Run the code above in your browser using DataLab