Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
314ac28d
Commit
314ac28d
authored
May 30, 2018
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: protected data member in ip_resolver_t
Solution: declare private
parent
573815da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
ip_resolver.hpp
src/ip_resolver.hpp
+11
-10
No files found.
src/ip_resolver.hpp
View file @
314ac28d
...
...
@@ -88,6 +88,17 @@ class ip_resolver_t
int
resolve
(
ip_addr_t
*
ip_addr_
,
const
char
*
name_
);
protected
:
// Virtual functions that are overridden in tests
virtual
int
do_getaddrinfo
(
const
char
*
node_
,
const
char
*
service_
,
const
struct
addrinfo
*
hints_
,
struct
addrinfo
**
res_
);
virtual
void
do_freeaddrinfo
(
struct
addrinfo
*
res_
);
virtual
unsigned
int
do_if_nametoindex
(
const
char
*
ifname_
);
private
:
ip_resolver_options_t
_options
;
int
resolve_nic_name
(
ip_addr_t
*
ip_addr_
,
const
char
*
nic_
);
...
...
@@ -97,16 +108,6 @@ class ip_resolver_t
int
get_interface_name
(
unsigned
long
index_
,
char
**
dest_
)
const
;
int
wchar_to_utf8
(
const
WCHAR
*
src_
,
char
**
dest_
)
const
;
#endif
// Virtual functions that are overriden in tests
virtual
int
do_getaddrinfo
(
const
char
*
node_
,
const
char
*
service_
,
const
struct
addrinfo
*
hints_
,
struct
addrinfo
**
res_
);
virtual
void
do_freeaddrinfo
(
struct
addrinfo
*
res_
);
virtual
unsigned
int
do_if_nametoindex
(
const
char
*
ifname_
);
};
}
...
...
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