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
8643d71e
Commit
8643d71e
authored
Jun 06, 2012
by
Ian Barber
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:zeromq/libzmq
parents
336f7272
3db9bf31
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
+15
-3
zmq.h
include/zmq.h
+2
-2
ipc_listener.cpp
src/ipc_listener.cpp
+4
-0
stream_engine.cpp
src/stream_engine.cpp
+1
-1
tcp_listener.cpp
src/tcp_listener.cpp
+8
-0
No files found.
include/zmq.h
View file @
8643d71e
...
...
@@ -59,8 +59,8 @@ extern "C" {
/* Version macros for compile-time API version detection */
#define ZMQ_VERSION_MAJOR 3
#define ZMQ_VERSION_MINOR
1
#define ZMQ_VERSION_PATCH
1
#define ZMQ_VERSION_MINOR
3
#define ZMQ_VERSION_PATCH
0
#define ZMQ_MAKE_VERSION(major, minor, patch) \
((major) * 10000 + (minor) * 100 + (patch))
...
...
src/ipc_listener.cpp
View file @
8643d71e
...
...
@@ -103,7 +103,11 @@ void zmq::ipc_listener_t::in_event ()
int
zmq
::
ipc_listener_t
::
get_address
(
std
::
string
&
addr_
)
{
struct
sockaddr_storage
ss
;
#ifdef ZMQ_HAVE_HPUX
int
sl
=
sizeof
(
ss
);
#else
socklen_t
sl
=
sizeof
(
ss
);
#endif
int
rc
=
getsockname
(
s
,
(
sockaddr
*
)
&
ss
,
&
sl
);
if
(
rc
!=
0
)
{
addr_
.
clear
();
...
...
src/stream_engine.cpp
View file @
8643d71e
...
...
@@ -78,7 +78,7 @@ zmq::stream_engine_t::stream_engine_t (fd_t fd_, const options_t &options_) :
#endif
}
#if
defined ZMQ_HAVE_OSX || defined ZMQ_HAVE_FREEBSD
#if
def SO_NOSIGPIPE
// Make sure that SIGPIPE signal is not generated when writing to a
// connection that was already closed by the peer.
int
set
=
1
;
...
...
src/tcp_listener.cpp
View file @
8643d71e
...
...
@@ -133,7 +133,11 @@ int zmq::tcp_listener_t::get_address (std::string &addr_)
{
// Get the details of the TCP socket
struct
sockaddr_storage
ss
;
#ifdef ZMQ_HAVE_HPUX
int
sl
=
sizeof
(
ss
);
#else
socklen_t
sl
=
sizeof
(
ss
);
#endif
int
rc
=
getsockname
(
s
,
(
struct
sockaddr
*
)
&
ss
,
&
sl
);
if
(
rc
!=
0
)
{
...
...
@@ -233,7 +237,11 @@ zmq::fd_t zmq::tcp_listener_t::accept ()
zmq_assert
(
s
!=
retired_fd
);
struct
sockaddr_storage
ss
=
{
0
};
#ifdef ZMQ_HAVE_HPUX
int
ss_len
=
sizeof
(
ss
);
#else
socklen_t
ss_len
=
sizeof
(
ss
);
#endif
fd_t
sock
=
::
accept
(
s
,
(
struct
sockaddr
*
)
&
ss
,
&
ss_len
);
#ifdef ZMQ_HAVE_WINDOWS
...
...
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