port-utils alternatives and similar packages
Based on the "Unclassified" category.
Alternatively, view port-utils alternatives based on common mentions on social networks and blogs.
-
bit-stream
Lazy infinite compact streams with cache-friendly O(1) indexing and applications for memoization -
dependent-sum-template
DISCONTINUED. Template Haskell code to generate instances of classes in dependent-sum package -
argon2
Haskell bindings to libargon2 - the reference implementation of the Argon2 password-hashing function
InfluxDB - Purpose built for real-time analytics at any scale.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of port-utils or a related project?
README
port-utils
openFreePort
This is another version of warp
's openFreePort
function. This function has fewer dependencies than the warp
version.
openFreePort
returns a socket on a random port and the port it has been bound to.
openFreePort :: IO (Int, Socket)
wait
wait
will attempt to connect to a host and port until it is successful. Between each unsuccessful attempt, it sleeps for 10 ms.
Here is an example of the primary function:
import Network.Socket.Wait (wait)
void $ forkIO $ Warp.run 7000 app
-- Wait for the server to start listening on the socket
wait "127.0.0.1" 7000
-- Communicate with the server
...
In bash one could write:
while ! nc -z localhost 7000 ; do sleep 0.01 ; done
The bash script above was copied from this stackoverflow answer https://stackoverflow.com/a/50008755