Commit 2ddce205 authored by Martin Sustrik's avatar Martin Sustrik

Merge branch 'master' of git@github.com:sustrik/zeromq2

parents 43620b3d a2f9899f
COPYING
INSTALL INSTALL
Makefile Makefile
Makefile.in Makefile.in
...@@ -17,7 +16,7 @@ autom4te.cache ...@@ -17,7 +16,7 @@ autom4te.cache
*.pdf *.pdf
*.ps *.ps
.* .*
src/platform.hpp src/platform.hpp*
src/stamp-h1 src/stamp-h1
devices/zmq_forwarder/zmq_forwarder devices/zmq_forwarder/zmq_forwarder
devices/zmq_queue/zmq_queue devices/zmq_queue/zmq_queue
...@@ -37,3 +36,7 @@ doc/*.3 ...@@ -37,3 +36,7 @@ doc/*.3
doc/*.7 doc/*.7
doc/*.html doc/*.html
doc/*.xml doc/*.xml
bindings/python/setup.py
src/libzmq.pc
foreign/openpgm/*
!foreign/openpgm/*.tar.bz2
...@@ -33,6 +33,7 @@ Aamir Mohammad ...@@ -33,6 +33,7 @@ Aamir Mohammad
Alexander Majorov Alexander Majorov
Bernd Schumacher Bernd Schumacher
Brett Cameron Brett Cameron
Brian Granger
Carsten Dinkelmann Carsten Dinkelmann
David Bahi David Bahi
Dirk Eddelbuettel Dirk Eddelbuettel
......
This diff is collapsed.
...@@ -8,9 +8,12 @@ SUBDIRS = src doc $(DIR_PERF) devices bindings examples ...@@ -8,9 +8,12 @@ SUBDIRS = src doc $(DIR_PERF) devices bindings examples
DIST_SUBDIRS = src doc perf devices bindings examples DIST_SUBDIRS = src doc perf devices bindings examples
EXTRA_DIST = \ EXTRA_DIST = \
$(top_srcdir)/foreign/openpgm/@pgm2_basename@.tar.bz2 \ $(top_srcdir)/foreign/openpgm/@pgm_basename@.tar.bz2 \
$(top_srcdir)/foreign/xmlParser/xmlParser.cpp \ $(top_srcdir)/foreign/xmlParser/xmlParser.cpp \
$(top_srcdir)/foreign/xmlParser/xmlParser.hpp $(top_srcdir)/foreign/xmlParser/xmlParser.hpp
dist-hook: dist-hook:
-rm -rf $(distdir)/foreign/openpgm/@pgm2_basename@ -rm -rf $(distdir)/foreign/openpgm/@pgm_basename@
clean-local:
-rm -rf $(top_srcdir)/foreign/openpgm/@pgm_basename@
...@@ -195,6 +195,7 @@ ZMQ_EXPORT int zmq_recv (void *s, zmq_msg_t *msg, int flags); ...@@ -195,6 +195,7 @@ ZMQ_EXPORT int zmq_recv (void *s, zmq_msg_t *msg, int flags);
#define ZMQ_POLLIN 1 #define ZMQ_POLLIN 1
#define ZMQ_POLLOUT 2 #define ZMQ_POLLOUT 2
#define ZMQ_POLLERR 4
typedef struct typedef struct
{ {
......
...@@ -17,8 +17,9 @@ dist_noinst_JAVA = \ ...@@ -17,8 +17,9 @@ dist_noinst_JAVA = \
lib_LTLIBRARIES = libjzmq.la lib_LTLIBRARIES = libjzmq.la
libjzmq_la_SOURCES = \ libjzmq_la_SOURCES = \
Context.cpp \ Context.cpp \
Socket.cpp
nodist_libjzmq_la_SOURCES = \
org_zmq_Context.h \ org_zmq_Context.h \
Socket.cpp \
org_zmq_Socket.h org_zmq_Socket.h
libjzmq_la_CXXFLAGS = @JAVA_INCLUDE@ -I$(top_srcdir)/bindings/c -Wall libjzmq_la_CXXFLAGS = @JAVA_INCLUDE@ -I$(top_srcdir)/bindings/c -Wall
......
This diff is collapsed.
...@@ -49,7 +49,8 @@ infinite timeout. ...@@ -49,7 +49,8 @@ infinite timeout.
RETURN VALUE RETURN VALUE
------------ ------------
Function returns number of items signaled or -1 in the case of error. Function returns number of items signaled, 0 in the case of timeout or -1
in the case of error.
ERRORS ERRORS
......
INCLUDES = -I$(top_builddir)/bindings/c INCLUDES = -I$(top_builddir)/bindings/c
if BUILD_PGM2_EXAMPLES if BUILD_PGM_EXAMPLES
PGM_EXAMPLES_BINS = pgmsend pgmrecv PGM_EXAMPLES_BINS = pgmsend pgmrecv
endif endif
...@@ -22,7 +22,7 @@ remote_thr_LDADD = $(top_builddir)/src/libzmq.la ...@@ -22,7 +22,7 @@ remote_thr_LDADD = $(top_builddir)/src/libzmq.la
remote_thr_SOURCES = remote_thr.c remote_thr_SOURCES = remote_thr.c
remote_thr_CXXFLAGS = -Wall -pedantic -Werror remote_thr_CXXFLAGS = -Wall -pedantic -Werror
if BUILD_PGM2_EXAMPLES if BUILD_PGM_EXAMPLES
if ON_MINGW if ON_MINGW
pgmexamples_diff_flags = \ pgmexamples_diff_flags = \
...@@ -64,7 +64,7 @@ pgmexamples_diff_flags = \ ...@@ -64,7 +64,7 @@ pgmexamples_diff_flags = \
-DG_LOG_DOMAIN='"Pgm"' -DG_LOG_DOMAIN='"Pgm"'
endif endif
pgmsend_SOURCES = ../../foreign/openpgm/@pgm_basename@/openpgm/pgm/examples/pgmsend.c nodist_pgmsend_SOURCES = ../../foreign/openpgm/@pgm_basename@/openpgm/pgm/examples/pgmsend.c
pgmsend_LDADD = $(top_builddir)/src/libzmq.la pgmsend_LDADD = $(top_builddir)/src/libzmq.la
pgmsend_CFLAGS = -I$(top_srcdir)/foreign/openpgm/@pgm_basename@/openpgm/pgm/include/ -Wall @LIBZMQ_EXTRA_CXXFLAGS@ \ pgmsend_CFLAGS = -I$(top_srcdir)/foreign/openpgm/@pgm_basename@/openpgm/pgm/include/ -Wall @LIBZMQ_EXTRA_CXXFLAGS@ \
-pipe \ -pipe \
...@@ -95,7 +95,7 @@ pgmsend_CFLAGS = -I$(top_srcdir)/foreign/openpgm/@pgm_basename@/openpgm/pgm/incl ...@@ -95,7 +95,7 @@ pgmsend_CFLAGS = -I$(top_srcdir)/foreign/openpgm/@pgm_basename@/openpgm/pgm/incl
-D_GNU_SOURCE \ -D_GNU_SOURCE \
${pgmexamples_diff_flags} ${pgmexamples_diff_flags}
pgmrecv_SOURCES = ../../foreign/openpgm/@pgm_basename@/openpgm/pgm/examples/pgmrecv.c nodist_pgmrecv_SOURCES = ../../foreign/openpgm/@pgm_basename@/openpgm/pgm/examples/pgmrecv.c
pgmrecv_LDADD = $(top_builddir)/src/libzmq.la pgmrecv_LDADD = $(top_builddir)/src/libzmq.la
pgmrecv_CFLAGS = -I$(top_srcdir)/foreign/openpgm/@pgm_basename@/openpgm/pgm/include/ -Wall @LIBZMQ_EXTRA_CXXFLAGS@ \ pgmrecv_CFLAGS = -I$(top_srcdir)/foreign/openpgm/@pgm_basename@/openpgm/pgm/include/ -Wall @LIBZMQ_EXTRA_CXXFLAGS@ \
-pipe \ -pipe \
......
...@@ -15,7 +15,7 @@ include_HEADERS = ../bindings/c/zmq.h ...@@ -15,7 +15,7 @@ include_HEADERS = ../bindings/c/zmq.h
endif endif
endif endif
if BUILD_PGM2 if BUILD_PGM
pgm_sources = ../foreign/openpgm/@pgm_basename@/openpgm/pgm/packet.c \ pgm_sources = ../foreign/openpgm/@pgm_basename@/openpgm/pgm/packet.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/time.c \ ../foreign/openpgm/@pgm_basename@/openpgm/pgm/time.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/if.c \ ../foreign/openpgm/@pgm_basename@/openpgm/pgm/if.c \
...@@ -49,6 +49,12 @@ pgm_sources = ../foreign/openpgm/@pgm_basename@/openpgm/pgm/packet.c \ ...@@ -49,6 +49,12 @@ pgm_sources = ../foreign/openpgm/@pgm_basename@/openpgm/pgm/packet.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/log.c \ ../foreign/openpgm/@pgm_basename@/openpgm/pgm/log.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/sockaddr.c \ ../foreign/openpgm/@pgm_basename@/openpgm/pgm/sockaddr.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/version.c ../foreign/openpgm/@pgm_basename@/openpgm/pgm/version.c
../foreign/openpgm/@pgm_basename@/openpgm/pgm/version.c: ../foreign/openpgm/@pgm_basename@/openpgm/pgm/version_generator.py
python ../foreign/openpgm/@pgm_basename@/openpgm/pgm/version_generator.py > $@
../foreign/openpgm/@pgm_basename@/openpgm/pgm/galois_tables.c: ../foreign/openpgm/@pgm_basename@/openpgm/pgm/galois_generator.pl
perl ../foreign/openpgm/@pgm_basename@/openpgm/pgm/galois_generator.pl > $@
endif endif
nodist_libzmq_la_SOURCES = $(pgm_sources) nodist_libzmq_la_SOURCES = $(pgm_sources)
...@@ -173,9 +179,9 @@ libzmq_la_SOURCES = app_thread.hpp \ ...@@ -173,9 +179,9 @@ libzmq_la_SOURCES = app_thread.hpp \
zmq_init.cpp \ zmq_init.cpp \
zmq_listener.cpp zmq_listener.cpp
libzmq_la_LDFLAGS = -version-info @LTVER@ @LIBZMQ_EXTRA_LDFLAFS@ libzmq_la_LDFLAGS = -version-info @LTVER@ @LIBZMQ_EXTRA_LDFLAGS@
if BUILD_PGM2 if BUILD_PGM
if ON_MINGW if ON_MINGW
libpgm_diff_flags = \ libpgm_diff_flags = \
......
...@@ -239,7 +239,11 @@ int zmq::resolve_ip_interface (sockaddr_storage* addr_, socklen_t *addr_len_, ...@@ -239,7 +239,11 @@ int zmq::resolve_ip_interface (sockaddr_storage* addr_, socklen_t *addr_len_,
// Restrict hostname/service to literals to avoid any DNS lookups or // Restrict hostname/service to literals to avoid any DNS lookups or
// service-name irregularity due to indeterminate socktype. // service-name irregularity due to indeterminate socktype.
#if defined ZMQ_HAVE_OSX
req.ai_flags = AI_PASSIVE | AI_NUMERICHOST;
#else
req.ai_flags = AI_PASSIVE | AI_NUMERICHOST | AI_NUMERICSERV; req.ai_flags = AI_PASSIVE | AI_NUMERICHOST | AI_NUMERICSERV;
#endif
// Resolve the literal address. Some of the error info is lost in case // Resolve the literal address. Some of the error info is lost in case
// of error, however, there's no way to report EAI errors via errno. // of error, however, there's no way to report EAI errors via errno.
...@@ -288,7 +292,11 @@ int zmq::resolve_ip_hostname (sockaddr_storage *addr_, socklen_t *addr_len_, ...@@ -288,7 +292,11 @@ int zmq::resolve_ip_hostname (sockaddr_storage *addr_, socklen_t *addr_len_,
// Avoid named services due to unclear socktype, and don't pick IPv6 // Avoid named services due to unclear socktype, and don't pick IPv6
// addresses if we don't have a local IPv6 address configured. // addresses if we don't have a local IPv6 address configured.
#if defined ZMQ_HAVE_OSX
req.ai_flags = AI_ADDRCONFIG;
#else
req.ai_flags = AI_NUMERICSERV | AI_ADDRCONFIG; req.ai_flags = AI_NUMERICSERV | AI_ADDRCONFIG;
#endif
// Resolve host name. Some of the error info is lost in case of error, // Resolve host name. Some of the error info is lost in case of error,
// however, there's no way to report EAI errors via errno. // however, there's no way to report EAI errors via errno.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment