Commit 318ad6d2 authored by Jennifer Buehler's avatar Jennifer Buehler

Spaces

parent 0826dfaa
/*
/*
Mathieu Stefani, 29 janvier 2016
Implementation of the Http client
*/
......@@ -382,7 +382,7 @@ Connection::connect(Address addr)
hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */
hints.ai_socktype = SOCK_STREAM; /* Stream socket */
hints.ai_flags = 0;
hints.ai_protocol = 0;
hints.ai_protocol = 0;
auto host = addr.host();
......@@ -407,7 +407,7 @@ Connection::connect(Address addr)
fd = sfd;
transport_->asyncConnect(shared_from_this(), addr->ai_addr, addr->ai_addrlen)
.then([=]() {
.then([=]() {
socklen_t len = sizeof(saddr);
getsockname(sfd, (struct sockaddr *)&saddr, &len);
connectionState_ = Connected;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment