Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readmemod #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ Here is an example of how to use MultiPing in your own code:
from multiping import MultiPing

# Create a MultiPing object to test three hosts / addresses
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment line here should then be changed to "four" hosts / addresses.

mp = MultiPing(["8.8.8.8", "youtube.com", "127.0.0.1"])
mp = MultiPing(["8.8.8.8", "youtube.com", "127.0.0.1"
"2001:4860:4860::8888"])

# Send the pings to those addresses
mp.send()
Expand Down Expand Up @@ -86,7 +87,7 @@ delivers results in a single and simple function call:

from multiping import multi_ping

addrs = ["8.8.8.8", "youtube.com", "127.0.0.1"]
addrs = ["8.8.8.8", "youtube.com", "127.0.0.1", "2001:4860:4860::8888"]

# Ping the addresses up to 4 times (initial ping + 3 retries), over the
# course of 2 seconds. This means that for those addresses that do not
Expand Down