Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pistache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
pistache
Commits
318ad6d2
Commit
318ad6d2
authored
Aug 09, 2018
by
Jennifer Buehler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spaces
parent
0826dfaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/client/client.cc
src/client/client.cc
+4
-4
No files found.
src/client/client.cc
View file @
318ad6d2
/*
/*
Mathieu Stefani, 29 janvier 2016
Mathieu Stefani, 29 janvier 2016
Implementation of the Http client
Implementation of the Http client
*/
*/
...
@@ -382,7 +382,7 @@ Connection::connect(Address addr)
...
@@ -382,7 +382,7 @@ Connection::connect(Address addr)
hints
.
ai_family
=
AF_UNSPEC
;
/* Allow IPv4 or IPv6 */
hints
.
ai_family
=
AF_UNSPEC
;
/* Allow IPv4 or IPv6 */
hints
.
ai_socktype
=
SOCK_STREAM
;
/* Stream socket */
hints
.
ai_socktype
=
SOCK_STREAM
;
/* Stream socket */
hints
.
ai_flags
=
0
;
hints
.
ai_flags
=
0
;
hints
.
ai_protocol
=
0
;
hints
.
ai_protocol
=
0
;
auto
host
=
addr
.
host
();
auto
host
=
addr
.
host
();
...
@@ -407,7 +407,7 @@ Connection::connect(Address addr)
...
@@ -407,7 +407,7 @@ Connection::connect(Address addr)
fd
=
sfd
;
fd
=
sfd
;
transport_
->
asyncConnect
(
shared_from_this
(),
addr
->
ai_addr
,
addr
->
ai_addrlen
)
transport_
->
asyncConnect
(
shared_from_this
(),
addr
->
ai_addr
,
addr
->
ai_addrlen
)
.
then
([
=
]()
{
.
then
([
=
]()
{
socklen_t
len
=
sizeof
(
saddr
);
socklen_t
len
=
sizeof
(
saddr
);
getsockname
(
sfd
,
(
struct
sockaddr
*
)
&
saddr
,
&
len
);
getsockname
(
sfd
,
(
struct
sockaddr
*
)
&
saddr
,
&
len
);
connectionState_
=
Connected
;
connectionState_
=
Connected
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment