summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:01:47 +0900
committerMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:01:47 +0900
commit4a7aad06d95701cf232198093ce396dcdbb53e5b (patch)
tree8ced8929e603a179d9434099244dfd782e705d5e /src
parent1fc63e4dbcf1438eb571d720f57be68852f820f7 (diff)
ZeroMQ renamed to Crossroads
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am22
-rw-r--r--src/array.hpp14
-rw-r--r--src/atomic_counter.hpp70
-rw-r--r--src/atomic_ptr.hpp70
-rw-r--r--src/blob.hpp14
-rw-r--r--src/clock.cpp22
-rw-r--r--src/clock.hpp14
-rw-r--r--src/command.hpp24
-rw-r--r--src/config.hpp14
-rw-r--r--src/ctx.cpp76
-rw-r--r--src/ctx.hpp38
-rw-r--r--src/decoder.cpp26
-rw-r--r--src/decoder.hpp23
-rw-r--r--src/devpoll.cpp40
-rw-r--r--src/devpoll.hpp20
-rw-r--r--src/dist.cpp36
-rw-r--r--src/dist.hpp32
-rw-r--r--src/encoder.cpp18
-rw-r--r--src/encoder.hpp21
-rw-r--r--src/epoll.cpp34
-rw-r--r--src/epoll.hpp20
-rw-r--r--src/err.cpp28
-rw-r--r--src/err.hpp50
-rw-r--r--src/fd.hpp17
-rw-r--r--src/fq.cpp28
-rw-r--r--src/fq.hpp14
-rw-r--r--src/i_engine.hpp16
-rw-r--r--src/i_poll_events.hpp18
-rw-r--r--src/io_object.cpp50
-rw-r--r--src/io_object.hpp18
-rw-r--r--src/io_thread.cpp36
-rw-r--r--src/io_thread.hpp16
-rw-r--r--src/ip.cpp42
-rw-r--r--src/ip.hpp14
-rw-r--r--src/ipc_address.cpp20
-rw-r--r--src/ipc_address.hpp16
-rw-r--r--src/ipc_connecter.cpp48
-rw-r--r--src/ipc_connecter.hpp18
-rw-r--r--src/ipc_listener.cpp32
-rw-r--r--src/ipc_listener.hpp22
-rw-r--r--src/kqueue.cpp40
-rw-r--r--src/kqueue.hpp20
-rw-r--r--src/lb.cpp28
-rw-r--r--src/lb.hpp14
-rw-r--r--src/libxs.pc.in (renamed from src/libzmq.pc.in)6
-rw-r--r--src/likely.hpp12
-rw-r--r--src/mailbox.cpp22
-rw-r--r--src/mailbox.hpp14
-rw-r--r--src/monitor.cpp24
-rw-r--r--src/monitor.hpp14
-rw-r--r--src/msg.cpp68
-rw-r--r--src/msg.hpp18
-rw-r--r--src/mtrie.cpp40
-rw-r--r--src/mtrie.hpp30
-rw-r--r--src/mutex.hpp18
-rw-r--r--src/object.cpp166
-rw-r--r--src/object.hpp72
-rw-r--r--src/options.cpp82
-rw-r--r--src/options.hpp12
-rw-r--r--src/own.cpp52
-rw-r--r--src/own.hpp20
-rw-r--r--src/pair.cpp40
-rw-r--r--src/pair.hpp30
-rw-r--r--src/pgm_receiver.cpp50
-rw-r--r--src/pgm_receiver.hpp26
-rw-r--r--src/pgm_sender.cpp44
-rw-r--r--src/pgm_sender.hpp24
-rw-r--r--src/pgm_socket.cpp146
-rw-r--r--src/pgm_socket.hpp16
-rw-r--r--src/pipe.cpp76
-rw-r--r--src/pipe.hpp28
-rw-r--r--src/poll.cpp36
-rw-r--r--src/poll.hpp20
-rw-r--r--src/poller.hpp80
-rw-r--r--src/poller_base.cpp26
-rw-r--r--src/poller_base.hpp20
-rw-r--r--src/precompiled.cpp8
-rw-r--r--src/precompiled.hpp16
-rw-r--r--src/pub.cpp20
-rw-r--r--src/pub.hpp20
-rw-r--r--src/pull.cpp28
-rw-r--r--src/pull.hpp24
-rw-r--r--src/push.cpp28
-rw-r--r--src/push.hpp24
-rw-r--r--src/random.cpp16
-rw-r--r--src/random.hpp14
-rw-r--r--src/reaper.cpp34
-rw-r--r--src/reaper.hpp18
-rw-r--r--src/rep.cpp26
-rw-r--r--src/rep.hpp22
-rw-r--r--src/req.cpp26
-rw-r--r--src/req.hpp22
-rw-r--r--src/select.cpp50
-rw-r--r--src/select.hpp22
-rw-r--r--src/session_base.cpp124
-rw-r--r--src/session_base.hpp40
-rw-r--r--src/signaler.cpp120
-rw-r--r--src/signaler.hpp14
-rw-r--r--src/socket_base.cpp174
-rw-r--r--src/socket_base.hpp30
-rw-r--r--src/stdint.hpp12
-rw-r--r--src/stream_engine.cpp62
-rw-r--r--src/stream_engine.hpp22
-rw-r--r--src/sub.cpp28
-rw-r--r--src/sub.hpp20
-rw-r--r--src/tcp_address.cpp82
-rw-r--r--src/tcp_address.hpp18
-rw-r--r--src/tcp_connecter.cpp58
-rw-r--r--src/tcp_connecter.hpp16
-rw-r--r--src/tcp_listener.cpp48
-rw-r--r--src/tcp_listener.hpp20
-rw-r--r--src/thread.cpp24
-rw-r--r--src/thread.hpp18
-rw-r--r--src/trie.cpp36
-rw-r--r--src/trie.hpp14
-rw-r--r--src/windows.hpp12
-rw-r--r--src/wire.hpp12
-rw-r--r--src/xpub.cpp44
-rw-r--r--src/xpub.hpp30
-rw-r--r--src/xrep.cpp56
-rw-r--r--src/xrep.hpp28
-rw-r--r--src/xreq.cpp38
-rw-r--r--src/xreq.hpp30
-rw-r--r--src/xs.cpp (renamed from src/zmq.cpp)339
-rw-r--r--src/xs_utils.cpp (renamed from src/zmq_utils.cpp)24
-rw-r--r--src/xsub.cpp62
-rw-r--r--src/xsub.hpp28
-rw-r--r--src/ypipe.hpp22
-rw-r--r--src/yqueue.hpp14
129 files changed, 2363 insertions, 2359 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index f38dd0a..0db7957 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,11 +1,11 @@
-lib_LTLIBRARIES = libzmq.la
+lib_LTLIBRARIES = libxs.la
pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = libzmq.pc
+pkgconfig_DATA = libxs.pc
-include_HEADERS = ../include/zmq.h ../include/zmq_utils.h
+include_HEADERS = ../include/xs.h ../include/xs_utils.h
-libzmq_la_SOURCES = \
+libxs_la_SOURCES = \
array.hpp \
atomic_counter.hpp \
atomic_ptr.hpp \
@@ -130,20 +130,20 @@ libzmq_la_SOURCES = \
xrep.cpp \
xreq.cpp \
xsub.cpp \
- zmq.cpp \
- zmq_utils.cpp
+ xs.cpp \
+ xs_utils.cpp
if ON_MINGW
-libzmq_la_LDFLAGS = -no-undefined -avoid-version -version-info @LTVER@ @LIBZMQ_EXTRA_LDFLAGS@
+libxs_la_LDFLAGS = -no-undefined -avoid-version -version-info @LTVER@ @LIBXS_EXTRA_LDFLAGS@
else
-libzmq_la_LDFLAGS = -version-info @LTVER@ @LIBZMQ_EXTRA_LDFLAGS@
+libxs_la_LDFLAGS = -version-info @LTVER@ @LIBXS_EXTRA_LDFLAGS@
endif
-libzmq_la_CXXFLAGS = @LIBZMQ_EXTRA_CXXFLAGS@
+libxs_la_CXXFLAGS = @LIBXS_EXTRA_CXXFLAGS@
if BUILD_PGM
-libzmq_la_CPPFLAGS = -I$(top_srcdir)/@pgm_srcdir@/include/
-libzmq_la_LIBADD = $(top_srcdir)/@pgm_srcdir@/libpgm_noinst.la
+libxs_la_CPPFLAGS = -I$(top_srcdir)/@pgm_srcdir@/include/
+libxs_la_LIBADD = $(top_srcdir)/@pgm_srcdir@/libpgm_noinst.la
endif
dist-hook:
diff --git a/src/array.hpp b/src/array.hpp
index 7e4ddd4..260558d 100644
--- a/src/array.hpp
+++ b/src/array.hpp
@@ -1,16 +1,16 @@
/*
- Copyright (c) 2009-2011 250bpm s.r.o.
+ Copyright (c) 2009-2012 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.
+ This file is part of Crossroads project.
- 0MQ is free software; you can redistribute it and/or modify it under
+ Crossroads 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,
+ Crossroads 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.
@@ -19,13 +19,13 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __ZMQ_ARRAY_INCLUDED__
-#define __ZMQ_ARRAY_INCLUDED__
+#ifndef __XS_ARRAY_INCLUDED__
+#define __XS_ARRAY_INCLUDED__
#include <vector>
#include <algorithm>
-namespace zmq
+namespace xs
{
// Base class for objects stored in the array. If you want to store
diff --git a/src/atomic_counter.hpp b/src/atomic_counter.hpp
index a0a67bf..81779a5 100644
--- a/src/atomic_counter.hpp
+++ b/src/atomic_counter.hpp
@@ -1,16 +1,16 @@
/*
- Copyright (c) 2009-2011 250bpm s.r.o.
+ Copyright (c) 2009-2012 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.
+ This file is part of Crossroads project.
- 0MQ is free software; you can redistribute it and/or modify it under
+ Crossroads 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,
+ Crossroads 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.
@@ -19,33 +19,33 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __ZMQ_ATOMIC_COUNTER_HPP_INCLUDED__
-#define