I copy-pasted the dial code from the stdlib, made it work with async sockets, 
replaced connect with bind and here it is: 
<https://github.com/mildred/stalwart-gw/blob/master/src/utils/parse_port.nim>

Reply via email to