No description
Find a file
2020-10-16 20:45:55 -07:00
examples prepping for new features 2020-10-16 17:28:49 -07:00
src new proc added 2020-10-16 20:45:55 -07:00
.gitignore bug fix in single connects, added examples 2020-10-16 14:38:33 -07:00
LICENSE Initial commit 2020-10-08 21:39:17 -07:00
netTest.nimble bug fix in single connects, added examples 2020-10-16 14:38:33 -07:00
README.md updating readme 2020-10-11 20:14:04 +00:00

netTest

Basic Internet Test for Nim Web Projects

How to use
copy netTest.nim to the projects src folder
import netTest into which ever file will test the connection

after importing you can use testConn("service", timeout)
service being either google or cloudflare and timeout in miliseconds

Basic usage
import netTest
echo("Testing google")
testConn(google, port, 2000)

Output: @[true, true] or @[false, false]

testConn proc's
testConn([cloudflare, google], port, timeout)
output: @[bool, bool]

testConn("server", port, timeout)
output: bool

testConn(@["server0", "server1", "server2"], port, timeout)
output: @[bool, bool, bool]