Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
actor-incubator
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
cpp-libs
actor-incubator
Commits
e7328314
Commit
e7328314
authored
Sep 08, 2019
by
Joseph Noir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove pragma linking, clearify todo
parent
c269e25a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
libcaf_net/src/ip.cpp
libcaf_net/src/ip.cpp
+3
-5
No files found.
libcaf_net/src/ip.cpp
View file @
e7328314
...
@@ -43,10 +43,6 @@
...
@@ -43,10 +43,6 @@
# include <sys/ioctl.h>
# include <sys/ioctl.h>
#endif
#endif
#ifdef CAF_WINDOWS
# pragma comment(lib, "IPHLPAPI.lib")
#endif
#ifndef HOST_NAME_MAX
#ifndef HOST_NAME_MAX
# define HOST_NAME_MAX 255
# define HOST_NAME_MAX 255
#endif
#endif
...
@@ -173,7 +169,9 @@ std::vector<ip_address> local_addresses(string_view host) {
...
@@ -173,7 +169,9 @@ std::vector<ip_address> local_addresses(string_view host) {
CAF_LOG_ERROR
(
"malloc failed"
);
CAF_LOG_ERROR
(
"malloc failed"
);
return
{};
return
{};
}
}
// TODO: The API example propopses to try three times.
// TODO: The Microsoft WIN32 API example propopses to try three times, other
// examples online just perform the call once. If we notice the call to be
// unreliable, we might adapt that behavior.
err
=
GetAdaptersAddresses
(
AF_UNSPEC
,
GAA_FLAG_INCLUDE_PREFIX
,
nullptr
,
err
=
GetAdaptersAddresses
(
AF_UNSPEC
,
GAA_FLAG_INCLUDE_PREFIX
,
nullptr
,
adapters
.
get
(),
&
len
);
adapters
.
get
(),
&
len
);
if
(
err
!=
ERROR_SUCCESS
)
{
if
(
err
!=
ERROR_SUCCESS
)
{
...
...
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