summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-11-04 09:48:25 +0100
committerMartin Sustrik <sustrik@250bpm.com>2011-11-04 09:48:25 +0100
commit05ce301f3571e3e690792a189cb927328163f0bc (patch)
tree1145b921033a2b88e9b987ec1d3e03060559702d /src
parenta8362abf11b51dd553766fb07a9e60f28e788126 (diff)
parent6cdd720400ea456ccbfdf09cdc5054ab07dbdc6f (diff)
Merge branch 'master' of github.com:zeromq/libzmq
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am7
-rw-r--r--src/array.hpp3
-rw-r--r--src/atomic_counter.hpp3
-rw-r--r--src/atomic_ptr.hpp3
-rw-r--r--src/blob.hpp35
-rw-r--r--src/clock.cpp4
-rw-r--r--src/clock.hpp4
-rw-r--r--src/command.hpp3
-rw-r--r--src/config.hpp3
-rw-r--r--src/ctx.cpp1
-rw-r--r--src/ctx.hpp3
-rw-r--r--src/decoder.cpp3
-rw-r--r--src/decoder.hpp3
-rw-r--r--src/devpoll.cpp3
-rw-r--r--src/devpoll.hpp3
-rw-r--r--src/dist.cpp20
-rw-r--r--src/dist.hpp4
-rw-r--r--src/encoder.cpp8
-rw-r--r--src/encoder.hpp3
-rw-r--r--src/epoll.cpp3
-rw-r--r--src/epoll.hpp3
-rw-r--r--src/err.cpp3
-rw-r--r--src/err.hpp3
-rw-r--r--src/fd.hpp2
-rw-r--r--src/fq.cpp6
-rw-r--r--src/fq.hpp3
-rw-r--r--src/i_engine.hpp3
-rw-r--r--src/i_poll_events.hpp3
-rw-r--r--src/io_object.cpp3
-rw-r--r--src/io_object.hpp3
-rw-r--r--src/io_thread.cpp3
-rw-r--r--src/io_thread.hpp3
-rw-r--r--src/ip.cpp3
-rw-r--r--src/ip.hpp3
-rw-r--r--src/ipc_address.cpp4
-rw-r--r--src/ipc_address.hpp4
-rw-r--r--src/ipc_connecter.cpp4
-rw-r--r--src/ipc_connecter.hpp4
-rw-r--r--src/ipc_listener.cpp4
-rw-r--r--src/ipc_listener.hpp4
-rw-r--r--src/kqueue.cpp3
-rw-r--r--src/kqueue.hpp3
-rw-r--r--src/lb.cpp9
-rw-r--r--src/lb.hpp3
-rw-r--r--src/likely.hpp4
-rw-r--r--src/mailbox.cpp3
-rw-r--r--src/mailbox.hpp3
-rw-r--r--src/msg.cpp9
-rw-r--r--src/msg.hpp12
-rw-r--r--src/mtrie.cpp4
-rw-r--r--src/mtrie.hpp4
-rw-r--r--src/mutex.hpp3
-rw-r--r--src/object.cpp3
-rw-r--r--src/object.hpp3
-rw-r--r--src/options.cpp32
-rw-r--r--src/options.hpp14
-rw-r--r--src/own.cpp4
-rw-r--r--src/own.hpp4
-rw-r--r--src/pair.cpp3
-rw-r--r--src/pair.hpp3
-rw-r--r--src/pgm_receiver.cpp4
-rw-r--r--src/pgm_receiver.hpp4
-rw-r--r--src/pgm_sender.cpp4
-rw-r--r--src/pgm_sender.hpp4
-rw-r--r--src/pgm_socket.cpp4
-rw-r--r--src/pgm_socket.hpp4
-rw-r--r--src/pipe.cpp21
-rw-r--r--src/pipe.hpp13
-rw-r--r--src/poll.cpp3
-rw-r--r--src/poll.hpp3
-rw-r--r--src/poller.hpp3
-rw-r--r--src/poller_base.cpp4
-rw-r--r--src/poller_base.hpp4
-rw-r--r--src/pub.cpp3
-rw-r--r--src/pub.hpp3
-rw-r--r--src/pull.cpp3
-rw-r--r--src/pull.hpp3
-rw-r--r--src/push.cpp3
-rw-r--r--src/push.hpp3
-rw-r--r--src/random.cpp4
-rw-r--r--src/random.hpp4
-rw-r--r--src/reaper.cpp4
-rw-r--r--src/reaper.hpp4
-rw-r--r--src/rep.cpp20
-rw-r--r--src/rep.hpp1
-rw-r--r--src/req.cpp56
-rw-r--r--src/req.hpp11
-rwxr-xr-xsrc/router.cpp285
-rwxr-xr-xsrc/router.hpp123
-rw-r--r--src/select.cpp3
-rw-r--r--src/select.hpp3
-rw-r--r--src/session_base.cpp45
-rw-r--r--src/session_base.hpp8
-rw-r--r--src/signaler.cpp4
-rw-r--r--src/signaler.hpp4
-rw-r--r--src/socket_base.cpp76
-rw-r--r--src/socket_base.hpp10
-rw-r--r--src/stdint.hpp2
-rw-r--r--src/stream_engine.cpp3
-rw-r--r--src/stream_engine.hpp3
-rw-r--r--src/sub.cpp3
-rw-r--r--src/sub.hpp3
-rw-r--r--src/tcp_address.cpp3
-rw-r--r--src/tcp_address.hpp3
-rw-r--r--src/tcp_connecter.cpp3
-rw-r--r--src/tcp_connecter.hpp3
-rw-r--r--src/tcp_listener.cpp3
-rw-r--r--src/tcp_listener.hpp3
-rw-r--r--src/thread.cpp1
-rw-r--r--src/thread.hpp1
-rw-r--r--src/trie.cpp3
-rw-r--r--src/trie.hpp3
-rw-r--r--src/vtcp_connecter.cpp251
-rw-r--r--src/vtcp_connecter.hpp120
-rw-r--r--src/vtcp_listener.cpp124
-rw-r--r--src/vtcp_listener.hpp71
-rw-r--r--src/windows.hpp3
-rw-r--r--src/wire.hpp2
-rw-r--r--src/xpub.cpp8
-rw-r--r--src/xpub.hpp4
-rw-r--r--src/xrep.cpp120
-rw-r--r--src/xrep.hpp7
-rw-r--r--src/xreq.cpp20
-rw-r--r--src/xreq.hpp3
-rw-r--r--src/xsub.cpp14
-rw-r--r--src/xsub.hpp4
-rw-r--r--src/ypipe.hpp3
-rw-r--r--src/yqueue.hpp3
-rw-r--r--src/zmq.cpp3
-rw-r--r--src/zmq_utils.cpp3
130 files changed, 537 insertions, 1337 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 3b7dec6..4d3cba3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -9,6 +9,7 @@ libzmq_la_SOURCES = \
array.hpp \
atomic_counter.hpp \
atomic_ptr.hpp \
+ blob.hpp \
clock.hpp \
command.hpp \
config.hpp \
@@ -55,7 +56,6 @@ libzmq_la_SOURCES = \
reaper.hpp \
rep.hpp \
req.hpp \
- router.hpp \
select.hpp \
session_base.hpp \
signaler.hpp \
@@ -68,8 +68,6 @@ libzmq_la_SOURCES = \
tcp_listener.hpp \
thread.hpp \
trie.hpp \
- vtcp_connecter.hpp \
- vtcp_listener.hpp \
windows.hpp \
wire.hpp \
xpub.hpp \
@@ -113,7 +111,6 @@ libzmq_la_SOURCES = \
reaper.cpp \
pub.cpp \
random.cpp \
- router.cpp \
rep.cpp \
req.cpp \
select.cpp \
@@ -127,8 +124,6 @@ libzmq_la_SOURCES = \
tcp_listener.cpp \
thread.cpp \
trie.cpp \
- vtcp_connecter.cpp \
- vtcp_listener.cpp \
xpub.cpp \
xrep.cpp \
xreq.cpp \
diff --git a/src/array.hpp b/src/array.hpp
index b1f6eca..7e4ddd4 100644
--- a/src/array.hpp
+++ b/src/array.hpp
@@ -1,5 +1,6 @@
/*
- Copyright (c) 2007-2011 iMatix Corporation
+ Copyright (c) 2009-2011 250bpm s.r.o.
+ Copyright (c) 2007-2009 iMatix Corporation
Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file
This file is part of 0MQ.
diff --git a/src/atomic_counter.hpp b/src/atomic_counter.hpp
index d7116d8..a0a67bf 100644
--- a/src/atomic_counter.hpp
+++ b/src/atomic_counter.hpp
@@ -1,5 +1,6 @@
/*
- Copyright (c) 2007-2011 iMatix Corporation
+ Copyright (c) 2009-2011 250bpm s.r.o.
+ Copyright (c) 2007-2009 iMatix Corporation
Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file
This file is part of 0MQ.
diff --git a/src/atomic_ptr.hpp b/src/atomic_ptr.hpp
index c106cd5..c59ab81 100644
--- a/src/atomic_ptr.hpp
+++ b/src/atomic_ptr.hpp
@@ -1,5 +1,6 @@
/*
- Copyright (c) 2007-2011 iMatix Corporation
+ Copyright (c) 2009-2011 250bpm s.r.o.
+ Copyright (c) 2007-2009 iMatix Corporation
Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file
This file is part of 0MQ.
diff --git a/src/blob.hpp b/src/blob.hpp
new file mode 100644
index 0000000..b8039c4
--- /dev/null
+++ b/src/blob.hpp
@@ -0,0 +1,35 @@
+/*
+ Copyright (c) 2010 250bpm s.r.o.
+ Copyright (c) 2010-2011 Other contributors as noted in the AUTHORS file
+
+ This file is part of 0MQ.
+
+ 0MQ is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ 0MQ is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#ifndef __ZMQ_BLOB_HPP_INCLUDED__
+#define __ZMQ_BLOB_HPP_INCLUDED__
+
+#include <string>
+
+namespace zmq
+{
+
+ // Object to hold dynamically allocated opaque binary data.
+ typedef std::basic_string <unsigned char> blob_t;
+
+}
+
+#endif
+
diff --git a/src/clock.cpp b/src/clock.cpp
index f98a2f4..92fc4be 100644
--- a/src/clock.cpp
+++ b/src/clock.cpp
@@ -1,6 +1,6 @@
/*
- Copyright (c) 2007-2011 iMatix Corporation
- Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file
+ Copyright (c) 2010-2011 250bpm s.r.o.
+ Copyright (c) 2010-2011 Other contributors as noted in the AUTHORS file
This file is part of 0MQ.
diff --git a/src/clock.hpp b/src/clock.hpp
index 1b34989..b3b19b2 100644
--- a/src/clock.hpp
+++ b/src/clock.hpp
@@ -1,6 +1,6 @@
/*
- Copyright (c) 2007-2011 iMatix Corporation
- Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file
+ Copyright (c) 2010-2011 250bpm s.r.o.
+ Copyright (c) 2010-2011 Other contributors as noted in the AUTHORS file
This file is part of 0MQ.
diff --git a/src/command.hpp b/src/command.hpp
index 1513ca8..ecf2d93 100644
--- a/src/command.hpp
+++ b/src/command.hpp
@@ -1,5 +1,6 @@