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
06140daf
Commit
06140daf
authored
Feb 17, 2012
by
Ian Barber
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #261 from mkoppanen/windows-build
Windows build
parents
e2485492
1bf4067c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
address.cpp
src/address.cpp
+2
-0
address.hpp
src/address.hpp
+4
-2
socket_base.cpp
src/socket_base.cpp
+2
-1
No files found.
src/address.cpp
View file @
06140daf
...
...
@@ -41,10 +41,12 @@ zmq::address_t::~address_t ()
resolved
.
tcp_addr
=
0
;
}
}
#if !defined ZMQ_HAVE_WINDOWS && !defined ZMQ_HAVE_OPENVMS
else
if
(
protocol
==
"ipc"
)
{
if
(
resolved
.
ipc_addr
)
{
delete
resolved
.
ipc_addr
;
resolved
.
ipc_addr
=
0
;
}
}
#endif
}
src/address.hpp
View file @
06140daf
...
...
@@ -26,8 +26,9 @@
namespace
zmq
{
class
tcp_address_t
;
#if !defined ZMQ_HAVE_WINDOWS && !defined ZMQ_HAVE_OPENVMS
class
ipc_address_t
;
#endif
struct
address_t
{
address_t
(
const
std
::
string
&
protocol_
,
const
std
::
string
&
address_
);
...
...
@@ -39,10 +40,11 @@ namespace zmq
// Protocol specific resolved address
union
{
tcp_address_t
*
tcp_addr
;
#if !defined ZMQ_HAVE_WINDOWS && !defined ZMQ_HAVE_OPENVMS
ipc_address_t
*
ipc_addr
;
#endif
}
resolved
;
};
}
#endif
src/socket_base.cpp
View file @
06140daf
...
...
@@ -464,6 +464,7 @@ int zmq::socket_base_t::connect (const char *addr_)
return
-
1
;
}
}
#if !defined ZMQ_HAVE_WINDOWS && !defined ZMQ_HAVE_OPENVMS
else
if
(
protocol
==
"ipc"
)
{
paddr
->
resolved
.
ipc_addr
=
new
(
std
::
nothrow
)
ipc_address_t
();
zmq_assert
(
paddr
->
resolved
.
ipc_addr
);
...
...
@@ -473,7 +474,7 @@ int zmq::socket_base_t::connect (const char *addr_)
return
-
1
;
}
}
#endif
// Create session.
session_base_t
*
session
=
session_base_t
::
create
(
io_thread
,
true
,
this
,
options
,
paddr
);
...
...
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