summaryrefslogtreecommitdiff
path: root/libstd/dial.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-05-28 00:24:43 -0400
committerOri Bernstein <ori@eigenstate.org>2014-05-28 00:24:43 -0400
commit8113f1c494f6430de52b5d005ceb6bda50091a09 (patch)
tree13ec0ca4b0e2c2edafd32f583d3152bdb9547d8e /libstd/dial.myr
parentdff266766cc5bf90588760734851b7ac636b5a6f (diff)
downloadmc-8113f1c494f6430de52b5d005ceb6bda50091a09.tar.gz
Reduce chattiness of dial.
It had too many debug prints.
Diffstat (limited to 'libstd/dial.myr')
-rw-r--r--libstd/dial.myr5
1 files changed, 0 insertions, 5 deletions
diff --git a/libstd/dial.myr b/libstd/dial.myr
index 54f555a..4cccb19 100644
--- a/libstd/dial.myr
+++ b/libstd/dial.myr
@@ -62,7 +62,6 @@ const dial = {str
match getaddr(host)
| `Ipv4 bits:
- put("connecting to %ub.%ub.%ub.%ub:%i\n", bits[0], bits[1], bits[2], bits[3], portnum)
sa.fam = Afinet
sa.addr = bits
sa.port = hosttonet(portnum)
@@ -70,16 +69,12 @@ const dial = {str
-> `Failure "ipv6 not yet supported"
;;
- put("socketing...\n")
sock = socket(sa.fam, socktype, 0)
- put("socketed\n")
if sock < 0
-> `Failure "failed to connect to socket"
;;
var err
- put("connecting...\n")
err = connect(sock, (&sa) castto(sockaddr#), sizeof(sockaddr_in))
- put("connected\n")
if err < 0
put("Errno %i\n", -err)
close(sock)