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
a1b6268c
Commit
a1b6268c
authored
Aug 09, 2018
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made to_string const; converted C-style cast to reinterpret_cast
parent
737927e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ipc_address.cpp
src/ipc_address.cpp
+2
-2
ipc_address.hpp
src/ipc_address.hpp
+1
-1
No files found.
src/ipc_address.cpp
View file @
a1b6268c
...
...
@@ -75,7 +75,7 @@ int zmq::ipc_address_t::resolve (const char *path_)
return
0
;
}
int
zmq
::
ipc_address_t
::
to_string
(
std
::
string
&
addr_
)
int
zmq
::
ipc_address_t
::
to_string
(
std
::
string
&
addr_
)
const
{
if
(
address
.
sun_family
!=
AF_UNIX
)
{
addr_
.
clear
();
...
...
@@ -94,7 +94,7 @@ int zmq::ipc_address_t::to_string (std::string &addr_)
const
sockaddr
*
zmq
::
ipc_address_t
::
addr
()
const
{
return
(
sockaddr
*
)
&
address
;
return
reinterpret_cast
<
const
sockaddr
*>
(
&
address
)
;
}
socklen_t
zmq
::
ipc_address_t
::
addrlen
()
const
...
...
src/ipc_address.hpp
View file @
a1b6268c
...
...
@@ -51,7 +51,7 @@ class ipc_address_t
int
resolve
(
const
char
*
path_
);
// The opposite to resolve()
int
to_string
(
std
::
string
&
addr_
);
int
to_string
(
std
::
string
&
addr_
)
const
;
const
sockaddr
*
addr
()
const
;
socklen_t
addrlen
()
const
;
...
...
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