diff --git a/AUTHORS b/AUTHORS index d0c2c47e..628f1dfe 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,7 +1,7 @@ Corporate Contributors ====================== -Copyright (c) 2007-2014 iMatix Corporation +Copyright (c) 2007-2015 iMatix Corporation Copyright (c) 2009-2011 250bpm s.r.o. Copyright (c) 2010-2011 Miru Limited Copyright (c) 2011 VMware, Inc. @@ -12,127 +12,127 @@ Copyright (c) 2014 AppDynamics Inc. Individual Contributors ======================= -AJ Lewis -Alexej Lotz -Andrew Thompson -Asko Kauppi -Attila Mark -Barak Amar -Ben Gray -Bernd Prager -Bernd Melchers -Bob Beaty -Brandon Carpenter -Brian Buchanan -Brett Cameron -Burak Arslan -Carl Clemens -Chia-liang Kao -Chris Busbey -Chris Rempel -Chris Wong -Christian Gudrian -Christian Kamm -Chuck Remes -Conrad D. Steenberg -Dhammika Pathirana -Dhruva Krishnamurthy -Dirk O. Kaar -Douglas Creager -Drew Crawford -Erich Heine -Erik Hugne -Erik Rigtorp -Fabien Ninoles -Frank Denis -George Neill -Gerard Toonstra -Ghislain Putois -Gonzalo Diethelm -Guido Goldstein -Ian Barber -Ilja Golshtein -Ivo Danihelka -Jacob Rideout -Joe Thornber -Jon Dyte -Kamil Shakirov -Ken Steele -Laurent Alebarde -Marc Rossi -Mark Barbisan -Martin Hurton -Martin Lucina -Martin Pales -Martin Sustrik -Matus Hamorsky -Max Wolf -McClain Looney -Michael Compton -Mika Fischer -Mikael Helbo Kjaer -Mike Gatny -Mikko Koppanen -Min Ragan-Kelley -Neale Ferguson -Nir Soffer -Paul Betts -Paul Colomiets -Pavel Gushcha -Pavol Malosek -Perry Kundert -Peter Bourgon -Philip Kovacs -Pieter Hintjens -Piotr Trojanek -Richard Newton +AJ Lewis +Alexej Lotz +Andrew Thompson +Asko Kauppi +Attila Mark +Barak Amar +Ben Gray +Bernd Prager +Bernd Melchers +Bob Beaty +Brandon Carpenter +Brian Buchanan +Brett Cameron +Burak Arslan +Carl Clemens +Chia-liang Kao +Chris Busbey +Chris Rempel +Chris Wong +Christian Gudrian +Christian Kamm +Chuck Remes +Conrad D. Steenberg +Dhammika Pathirana +Dhruva Krishnamurthy +Dirk O. Kaar +Douglas Creager +Drew Crawford +Erich Heine +Erik Hugne +Erik Rigtorp +Fabien Ninoles +Frank Denis +George Neill +Gerard Toonstra +Ghislain Putois +Gonzalo Diethelm +Guido Goldstein +Ian Barber +Ilja Golshtein +Ivo Danihelka +Jacob Rideout +Joe Thornber +Jon Dyte +Kamil Shakirov +Ken Steele +Laurent Alebarde +Marc Rossi +Mark Barbisan +Martin Hurton +Martin Lucina +Martin Pales +Martin Sustrik +Matus Hamorsky +Max Wolf +McClain Looney +Michael Compton +Mika Fischer +Mikael Helbo Kjaer +Mike Gatny +Mikko Koppanen +Min Ragan-Kelley +Neale Ferguson +Nir Soffer +Paul Betts +Paul Colomiets +Pavel Gushcha +Pavol Malosek +Perry Kundert +Peter Bourgon +Philip Kovacs +Pieter Hintjens +Piotr Trojanek +Richard Newton Rik van der Heijden -Robert G. Jakabosky -Sebastian Otaegui -Stefan Radomski -Steven McCoy -Stuart Webster -Tamara Kustarova -Taras Shpot -Tero Marttila -Terry Wilson -Thijs Terlouw -Thomas Rodgers -Toralf Wittner -Tore Halvorsen -Trevor Bernard -Vitaly Mayatskikh -Lourens Naudé -Hardeep Singh -André Caron -Tim Mossbarger +Robert G. Jakabosky +Sebastian Otaegui +Stefan Radomski +Steven McCoy +Stuart Webster +Tamara Kustarova +Taras Shpot +Tero Marttila +Terry Wilson +Thijs Terlouw +Thomas Rodgers +Toralf Wittner +Tore Halvorsen +Trevor Bernard +Vitaly Mayatskikh +Lourens Naudé +Hardeep Singh +André Caron +Tim Mossbarger Credits ======= -Aamir Mohammad -Adrian von Bidder -Aleksey Yeschenko -Alessio Spadaro -Alexander Majorov -Anh Vu -Bernd Schumacher -Brian Granger -Carsten Dinkelmann -David Bahi -Dirk Eddelbuettel -Evgueny Khartchenko -Frank Vanden Berghen -Ian Barber -John Apps -Markus Fischer -Matt Muggeridge -Michael Santy -Oleg Sevostyanov -Paulo Henrique Silva -Peter Busser -Peter Lemenkov -Robert Zhang -Toralf Wittner -Zed Shaw +Aamir Mohammad +Adrian von Bidder +Aleksey Yeschenko +Alessio Spadaro +Alexander Majorov +Anh Vu +Bernd Schumacher +Brian Granger +Carsten Dinkelmann +David Bahi +Dirk Eddelbuettel +Evgueny Khartchenko +Frank Vanden Berghen +Ian Barber +John Apps +Markus Fischer +Matt Muggeridge +Michael Santy +Oleg Sevostyanov +Paulo Henrique Silva +Peter Busser +Peter Lemenkov +Robert Zhang +Toralf Wittner +Zed Shaw diff --git a/builds/mingw32/platform.hpp b/builds/mingw32/platform.hpp index 4af872cd..c255ff68 100644 --- a/builds/mingw32/platform.hpp +++ b/builds/mingw32/platform.hpp @@ -1,18 +1,27 @@ /* - Copyright (c) 2007-2011 iMatix Corporation - Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/builds/msvc/platform.hpp b/builds/msvc/platform.hpp index 4af872cd..c255ff68 100644 --- a/builds/msvc/platform.hpp +++ b/builds/msvc/platform.hpp @@ -1,18 +1,27 @@ /* - Copyright (c) 2007-2011 iMatix Corporation - Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/builds/zos/test_fork.cpp b/builds/zos/test_fork.cpp index f0a9f22a..3273ceb6 100644 --- a/builds/zos/test_fork.cpp +++ b/builds/zos/test_fork.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2013 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -30,7 +40,7 @@ int main (void) setup_test_environment (); void *ctx = zmq_ctx_new (); assert (ctx); - + // Create and bind pull socket to receive messages void *pull = zmq_socket (ctx, ZMQ_PULL); assert (pull); @@ -54,11 +64,11 @@ int main (void) int count; for (count = 0; count < NUM_MESSAGES; count++) zmq_send (push, "Hello", 5, 0); - + zmq_close (push); zmq_ctx_destroy (child_ctx); exit (0); - } + } else { // Parent process alarm(TIMEOUT_SECS); // Set upper limit on runtime @@ -72,7 +82,7 @@ int main (void) int child_status; while (true) { rc = waitpid (pid, &child_status, 0); - if (rc == -1 && errno == EINTR) + if (rc == -1 && errno == EINTR) continue; assert (rc > 0); // Verify the status code of the child was zero diff --git a/include/zmq.h b/include/zmq.h index 53e63682..310f1610 100644 --- a/include/zmq.h +++ b/include/zmq.h @@ -1,5 +1,5 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file This file is part of 0MQ. @@ -295,7 +295,7 @@ ZMQ_EXPORT const char *zmq_msg_gets (zmq_msg_t *msg, const char *property); #define ZMQ_ZAP_DOMAIN 55 #define ZMQ_ROUTER_HANDOVER 56 #define ZMQ_TOS 57 -#define ZMQ_CONNECT_RID 61 +#define ZMQ_CONNECT_RID 61 #define ZMQ_GSSAPI_SERVER 62 #define ZMQ_GSSAPI_PRINCIPAL 63 #define ZMQ_GSSAPI_SERVICE_PRINCIPAL 64 diff --git a/include/zmq_utils.h b/include/zmq_utils.h index 61c70497..3392a8e0 100644 --- a/include/zmq_utils.h +++ b/include/zmq_utils.h @@ -1,5 +1,5 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file This file is part of 0MQ. diff --git a/perf/inproc_lat.cpp b/perf/inproc_lat.cpp index 5c221f15..d9c9cfa6 100644 --- a/perf/inproc_lat.cpp +++ b/perf/inproc_lat.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/perf/inproc_thr.cpp b/perf/inproc_thr.cpp index 22116fc1..5dcbabd7 100644 --- a/perf/inproc_thr.cpp +++ b/perf/inproc_thr.cpp @@ -3,17 +3,27 @@ Copyright (c) 2009-2011 250bpm s.r.o. Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/perf/local_lat.cpp b/perf/local_lat.cpp index 683f730b..a4c25ff7 100644 --- a/perf/local_lat.cpp +++ b/perf/local_lat.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/perf/local_thr.cpp b/perf/local_thr.cpp index fb88ed83..80d8da3a 100644 --- a/perf/local_thr.cpp +++ b/perf/local_thr.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/perf/remote_lat.cpp b/perf/remote_lat.cpp index f292861c..d00f1390 100644 --- a/perf/remote_lat.cpp +++ b/perf/remote_lat.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/perf/remote_thr.cpp b/perf/remote_thr.cpp index 5a0072d4..4e2ce818 100644 --- a/perf/remote_thr.cpp +++ b/perf/remote_thr.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/address.cpp b/src/address.cpp index 8a321373..c8697ecc 100644 --- a/src/address.cpp +++ b/src/address.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/address.hpp b/src/address.hpp index 88faf0b1..28421f06 100644 --- a/src/address.hpp +++ b/src/address.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/array.hpp b/src/array.hpp index c12c70ad..35e3c405 100644 --- a/src/array.hpp +++ b/src/array.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/atomic_counter.hpp b/src/atomic_counter.hpp index 81536e29..44e9ec02 100644 --- a/src/atomic_counter.hpp +++ b/src/atomic_counter.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/atomic_ptr.hpp b/src/atomic_ptr.hpp index 88e36efd..0e981821 100644 --- a/src/atomic_ptr.hpp +++ b/src/atomic_ptr.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/blob.hpp b/src/blob.hpp index 943106b4..689b60b2 100644 --- a/src/blob.hpp +++ b/src/blob.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/clock.cpp b/src/clock.cpp index 07d44b57..dab08793 100644 --- a/src/clock.cpp +++ b/src/clock.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/clock.hpp b/src/clock.hpp index 372bc82c..f56f618e 100644 --- a/src/clock.hpp +++ b/src/clock.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/command.hpp b/src/command.hpp index 038c1254..a10d8ec1 100644 --- a/src/command.hpp +++ b/src/command.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -148,6 +158,6 @@ namespace zmq } args; }; -} +} #endif diff --git a/src/config.hpp b/src/config.hpp index 91263ebf..b483c469 100644 --- a/src/config.hpp +++ b/src/config.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/ctx.cpp b/src/ctx.cpp index 399c2677..0dd3cc48 100644 --- a/src/ctx.cpp +++ b/src/ctx.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/ctx.hpp b/src/ctx.hpp index b9382175..dd397abe 100644 --- a/src/ctx.hpp +++ b/src/ctx.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -76,7 +86,7 @@ namespace zmq // (except zmq_close). // This function is non-blocking. // terminate must still be called afterwards. - // This function is optional, terminate will unblock any current + // This function is optional, terminate will unblock any current // operations as well. int shutdown(); diff --git a/src/curve_client.cpp b/src/curve_client.cpp index 6019c541..842e504a 100644 --- a/src/curve_client.cpp +++ b/src/curve_client.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/curve_client.hpp b/src/curve_client.hpp index b5756fbc..ffae1236 100644 --- a/src/curve_client.hpp +++ b/src/curve_client.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/curve_server.cpp b/src/curve_server.cpp index a3c4243b..7bdd8a91 100644 --- a/src/curve_server.cpp +++ b/src/curve_server.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/curve_server.hpp b/src/curve_server.hpp index f736ae4e..fe7cf877 100644 --- a/src/curve_server.hpp +++ b/src/curve_server.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/dbuffer.hpp b/src/dbuffer.hpp index 9a24dbf1..46fe2441 100644 --- a/src/dbuffer.hpp +++ b/src/dbuffer.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/dealer.cpp b/src/dealer.cpp index 6739c20a..2a3a5aa3 100644 --- a/src/dealer.cpp +++ b/src/dealer.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/dealer.hpp b/src/dealer.hpp index abcfef63..3b1d636a 100644 --- a/src/dealer.hpp +++ b/src/dealer.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/decoder.hpp b/src/decoder.hpp index 7ac827d6..fc4b177d 100644 --- a/src/decoder.hpp +++ b/src/decoder.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/devpoll.cpp b/src/devpoll.cpp index ecb01dcf..6c97256e 100644 --- a/src/devpoll.cpp +++ b/src/devpoll.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/devpoll.hpp b/src/devpoll.hpp index 3d7f2d84..5d77b8fc 100644 --- a/src/devpoll.hpp +++ b/src/devpoll.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/dist.cpp b/src/dist.cpp old mode 100755 new mode 100644 index 794923ec..e7e18233 --- a/src/dist.cpp +++ b/src/dist.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -66,7 +76,7 @@ void zmq::dist_t::match (pipe_t *pipe_) // Mark the pipe as matching. pipes.swap (pipes.index (pipe_), matching); - matching++; + matching++; } void zmq::dist_t::unmatch () diff --git a/src/dist.hpp b/src/dist.hpp index 1758f6ba..3b5e5702 100644 --- a/src/dist.hpp +++ b/src/dist.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/encoder.hpp b/src/encoder.hpp index 56b41246..8d8a0ff5 100644 --- a/src/encoder.hpp +++ b/src/encoder.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -60,7 +70,7 @@ namespace zmq { free (buf); } - + // The function returns a batch of binary data. The data // are filled to a supplied buffer. If no buffer is supplied (data_ // points to NULL) decoder object will provide buffer of its own. diff --git a/src/epoll.cpp b/src/epoll.cpp index 13d970f2..1de68c52 100644 --- a/src/epoll.cpp +++ b/src/epoll.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/epoll.hpp b/src/epoll.hpp index e48f2303..8f79343c 100644 --- a/src/epoll.hpp +++ b/src/epoll.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/err.cpp b/src/err.cpp index 86928c79..1ca7200e 100644 --- a/src/err.cpp +++ b/src/err.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -94,108 +104,108 @@ const char *zmq::wsa_error_no (int no_) // automatically (wsaError->HRESULT->string?). return (no_ == WSABASEERR) ? - "No Error" : + "No Error" : (no_ == WSAEINTR) ? - "Interrupted system call" : + "Interrupted system call" : (no_ == WSAEBADF) ? - "Bad file number" : + "Bad file number" : (no_ == WSAEACCES) ? - "Permission denied" : + "Permission denied" : (no_ == WSAEFAULT) ? - "Bad address" : + "Bad address" : (no_ == WSAEINVAL) ? - "Invalid argument" : + "Invalid argument" : (no_ == WSAEMFILE) ? - "Too many open files" : + "Too many open files" : (no_ == WSAEWOULDBLOCK) ? - "Operation would block" : + "Operation would block" : (no_ == WSAEINPROGRESS) ? - "Operation now in progress" : + "Operation now in progress" : (no_ == WSAEALREADY) ? - "Operation already in progress" : + "Operation already in progress" : (no_ == WSAENOTSOCK) ? - "Socket operation on non-socket" : + "Socket operation on non-socket" : (no_ == WSAEDESTADDRREQ) ? - "Destination address required" : + "Destination address required" : (no_ == WSAEMSGSIZE) ? - "Message too long" : + "Message too long" : (no_ == WSAEPROTOTYPE) ? - "Protocol wrong type for socket" : + "Protocol wrong type for socket" : (no_ == WSAENOPROTOOPT) ? - "Bad protocol option" : + "Bad protocol option" : (no_ == WSAEPROTONOSUPPORT) ? - "Protocol not supported" : + "Protocol not supported" : (no_ == WSAESOCKTNOSUPPORT) ? - "Socket type not supported" : + "Socket type not supported" : (no_ == WSAEOPNOTSUPP) ? - "Operation not supported on socket" : + "Operation not supported on socket" : (no_ == WSAEPFNOSUPPORT) ? - "Protocol family not supported" : + "Protocol family not supported" : (no_ == WSAEAFNOSUPPORT) ? - "Address family not supported by protocol family" : + "Address family not supported by protocol family" : (no_ == WSAEADDRINUSE) ? - "Address already in use" : + "Address already in use" : (no_ == WSAEADDRNOTAVAIL) ? - "Can't assign requested address" : + "Can't assign requested address" : (no_ == WSAENETDOWN) ? - "Network is down" : + "Network is down" : (no_ == WSAENETUNREACH) ? - "Network is unreachable" : + "Network is unreachable" : (no_ == WSAENETRESET) ? - "Net dropped connection or reset" : + "Net dropped connection or reset" : (no_ == WSAECONNABORTED) ? - "Software caused connection abort" : + "Software caused connection abort" : (no_ == WSAECONNRESET) ? - "Connection reset by peer" : + "Connection reset by peer" : (no_ == WSAENOBUFS) ? - "No buffer space available" : + "No buffer space available" : (no_ == WSAEISCONN) ? - "Socket is already connected" : + "Socket is already connected" : (no_ == WSAENOTCONN) ? - "Socket is not connected" : + "Socket is not connected" : (no_ == WSAESHUTDOWN) ? - "Can't send after socket shutdown" : + "Can't send after socket shutdown" : (no_ == WSAETOOMANYREFS) ? - "Too many references can't splice" : + "Too many references can't splice" : (no_ == WSAETIMEDOUT) ? - "Connection timed out" : + "Connection timed out" : (no_ == WSAECONNREFUSED) ? - "Connection refused" : + "Connection refused" : (no_ == WSAELOOP) ? - "Too many levels of symbolic links" : + "Too many levels of symbolic links" : (no_ == WSAENAMETOOLONG) ? - "File name too long" : + "File name too long" : (no_ == WSAEHOSTDOWN) ? - "Host is down" : + "Host is down" : (no_ == WSAEHOSTUNREACH) ? - "No Route to Host" : + "No Route to Host" : (no_ == WSAENOTEMPTY) ? - "Directory not empty" : + "Directory not empty" : (no_ == WSAEPROCLIM) ? - "Too many processes" : + "Too many processes" : (no_ == WSAEUSERS) ? - "Too many users" : + "Too many users" : (no_ == WSAEDQUOT) ? - "Disc Quota Exceeded" : + "Disc Quota Exceeded" : (no_ == WSAESTALE) ? - "Stale NFS file handle" : + "Stale NFS file handle" : (no_ == WSAEREMOTE) ? - "Too many levels of remote in path" : + "Too many levels of remote in path" : (no_ == WSASYSNOTREADY) ? - "Network SubSystem is unavailable" : + "Network SubSystem is unavailable" : (no_ == WSAVERNOTSUPPORTED) ? - "WINSOCK DLL Version out of range" : + "WINSOCK DLL Version out of range" : (no_ == WSANOTINITIALISED) ? - "Successful WSASTARTUP not yet performed" : + "Successful WSASTARTUP not yet performed" : (no_ == WSAHOST_NOT_FOUND) ? - "Host not found" : + "Host not found" : (no_ == WSATRY_AGAIN) ? - "Non-Authoritative Host not found" : + "Non-Authoritative Host not found" : (no_ == WSANO_RECOVERY) ? - "Non-Recoverable errors: FORMERR REFUSED NOTIMP" : + "Non-Recoverable errors: FORMERR REFUSED NOTIMP" : (no_ == WSANO_DATA) ? "Valid name no data record of requested" : - "error not defined"; + "error not defined"; } void zmq::win_error (char *buffer_, size_t buffer_size_) diff --git a/src/err.hpp b/src/err.hpp index 4d288e21..fcefb892 100644 --- a/src/err.hpp +++ b/src/err.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -111,7 +121,7 @@ namespace zmq __FILE__, __LINE__);\ zmq::zmq_abort (#x);\ }\ - } while (false) + } while (false) // Provides convenient way to check for errno-style errors. #define errno_assert(x) \ diff --git a/src/fd.hpp b/src/fd.hpp index a2333e0e..315c7fae 100644 --- a/src/fd.hpp +++ b/src/fd.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/fq.cpp b/src/fq.cpp index 932503e5..9269eb20 100644 --- a/src/fq.cpp +++ b/src/fq.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/fq.hpp b/src/fq.hpp index 49f69059..6c06c691 100644 --- a/src/fq.hpp +++ b/src/fq.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/gssapi_client.cpp b/src/gssapi_client.cpp index 607af3d0..3373c7ed 100644 --- a/src/gssapi_client.cpp +++ b/src/gssapi_client.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/gssapi_client.hpp b/src/gssapi_client.hpp index b6253921..7bc9d5af 100644 --- a/src/gssapi_client.hpp +++ b/src/gssapi_client.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/gssapi_mechanism_base.cpp b/src/gssapi_mechanism_base.cpp index f9498232..355f1528 100644 --- a/src/gssapi_mechanism_base.cpp +++ b/src/gssapi_mechanism_base.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/gssapi_mechanism_base.hpp b/src/gssapi_mechanism_base.hpp index 1f402f98..1e26a950 100644 --- a/src/gssapi_mechanism_base.hpp +++ b/src/gssapi_mechanism_base.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/gssapi_server.cpp b/src/gssapi_server.cpp index 4c10a392..97f3f9b5 100644 --- a/src/gssapi_server.cpp +++ b/src/gssapi_server.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/gssapi_server.hpp b/src/gssapi_server.hpp index 55c706f2..c3782230 100644 --- a/src/gssapi_server.hpp +++ b/src/gssapi_server.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/i_decoder.hpp b/src/i_decoder.hpp index 1879c66e..b003cf81 100644 --- a/src/i_decoder.hpp +++ b/src/i_decoder.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/i_encoder.hpp b/src/i_encoder.hpp index a22017eb..eb341e57 100644 --- a/src/i_encoder.hpp +++ b/src/i_encoder.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/i_engine.hpp b/src/i_engine.hpp index 49896c21..7a61e8e9 100644 --- a/src/i_engine.hpp +++ b/src/i_engine.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/i_poll_events.hpp b/src/i_poll_events.hpp index 1e033906..e42556bb 100644 --- a/src/i_poll_events.hpp +++ b/src/i_poll_events.hpp @@ -1,45 +1,55 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . + along with this program. If not, see . */ - + #ifndef __ZMQ_I_POLL_EVENTS_HPP_INCLUDED__ #define __ZMQ_I_POLL_EVENTS_HPP_INCLUDED__ - + namespace zmq { - + // Virtual interface to be exposed by object that want to be notified // about events on file descriptors. - + struct i_poll_events { virtual ~i_poll_events () {} - + // Called by I/O thread when file descriptor is ready for reading. virtual void in_event () = 0; - + // Called by I/O thread when file descriptor is ready for writing. virtual void out_event () = 0; - + // Called when timer expires. virtual void timer_event (int id_) = 0; }; - + } - + #endif diff --git a/src/io_object.cpp b/src/io_object.cpp index 03192a75..71067bc0 100644 --- a/src/io_object.cpp +++ b/src/io_object.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/io_object.hpp b/src/io_object.hpp index af033691..d414678d 100644 --- a/src/io_object.hpp +++ b/src/io_object.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/io_thread.cpp b/src/io_thread.cpp index e7fb1417..8c394d4a 100644 --- a/src/io_thread.cpp +++ b/src/io_thread.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/io_thread.hpp b/src/io_thread.hpp index 49a2e80d..b1f0e3e9 100644 --- a/src/io_thread.hpp +++ b/src/io_thread.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/ip.cpp b/src/ip.cpp index 6d4c47a8..d17f19c9 100644 --- a/src/ip.cpp +++ b/src/ip.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/ip.hpp b/src/ip.hpp index 82ebf0b6..7ea3f15a 100644 --- a/src/ip.hpp +++ b/src/ip.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/ipc_address.cpp b/src/ipc_address.cpp index e45fb53b..ba247600 100644 --- a/src/ipc_address.cpp +++ b/src/ipc_address.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/ipc_address.hpp b/src/ipc_address.hpp index e5f674b5..27c299aa 100644 --- a/src/ipc_address.hpp +++ b/src/ipc_address.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/ipc_connecter.cpp b/src/ipc_connecter.cpp index 330dbffd..34abb568 100644 --- a/src/ipc_connecter.cpp +++ b/src/ipc_connecter.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -177,14 +187,14 @@ int zmq::ipc_connecter_t::get_new_reconnect_ivl () // Only change the current reconnect interval if the maximum reconnect // interval was set and if it's larger than the reconnect interval. - if (options.reconnect_ivl_max > 0 && + if (options.reconnect_ivl_max > 0 && options.reconnect_ivl_max > options.reconnect_ivl) { // Calculate the next interval current_reconnect_ivl = current_reconnect_ivl * 2; if(current_reconnect_ivl >= options.reconnect_ivl_max) { current_reconnect_ivl = options.reconnect_ivl_max; - } + } } return this_interval; } @@ -209,7 +219,7 @@ int zmq::ipc_connecter_t::open () // Connect was successfull immediately. if (rc == 0) return 0; - + // Translate other error codes indicating asynchronous connect has been // launched to a uniform EINPROGRESS. if (rc == -1 && errno == EINTR) { diff --git a/src/ipc_connecter.hpp b/src/ipc_connecter.hpp index cb119c23..5c032063 100644 --- a/src/ipc_connecter.hpp +++ b/src/ipc_connecter.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/ipc_listener.cpp b/src/ipc_listener.cpp index eef54359..5c2a028f 100644 --- a/src/ipc_listener.cpp +++ b/src/ipc_listener.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -100,7 +110,7 @@ void zmq::ipc_listener_t::in_event () io_thread_t *io_thread = choose_io_thread (options.affinity); zmq_assert (io_thread); - // Create and launch a session object. + // Create and launch a session object. session_base_t *session = session_base_t::create (io_thread, false, socket, options, NULL); errno_assert (session); diff --git a/src/ipc_listener.hpp b/src/ipc_listener.hpp index 2a63a722..445f96ba 100644 --- a/src/ipc_listener.hpp +++ b/src/ipc_listener.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/kqueue.cpp b/src/kqueue.cpp index e77cf722..3095ab7a 100644 --- a/src/kqueue.cpp +++ b/src/kqueue.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/kqueue.hpp b/src/kqueue.hpp index b3e68d6c..b6680b6a 100644 --- a/src/kqueue.hpp +++ b/src/kqueue.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/lb.cpp b/src/lb.cpp index 7fdd765b..44b11ea7 100644 --- a/src/lb.cpp +++ b/src/lb.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/lb.hpp b/src/lb.hpp index 6a64e1d8..b43a8ff1 100644 --- a/src/lb.hpp +++ b/src/lb.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/likely.hpp b/src/likely.hpp index b7f50c16..b7f5ef27 100644 --- a/src/likely.hpp +++ b/src/likely.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/mailbox.cpp b/src/mailbox.cpp index bd140a4c..e3c2e8a1 100644 --- a/src/mailbox.cpp +++ b/src/mailbox.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/mailbox.hpp b/src/mailbox.hpp index abb28777..7d3aed4c 100644 --- a/src/mailbox.hpp +++ b/src/mailbox.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/mechanism.cpp b/src/mechanism.cpp index dc1ab829..84f15dad 100644 --- a/src/mechanism.cpp +++ b/src/mechanism.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/mechanism.hpp b/src/mechanism.hpp index a3b43d4a..1c7c01ba 100644 --- a/src/mechanism.hpp +++ b/src/mechanism.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/metadata.cpp b/src/metadata.cpp index db8f0940..956bf989 100644 --- a/src/metadata.cpp +++ b/src/metadata.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/metadata.hpp b/src/metadata.hpp index bb16d14b..7181d784 100644 --- a/src/metadata.hpp +++ b/src/metadata.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/msg.cpp b/src/msg.cpp index 72e45580..00ed1595 100644 --- a/src/msg.cpp +++ b/src/msg.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/msg.hpp b/src/msg.hpp index 04eb8f63..9a8baca0 100644 --- a/src/msg.hpp +++ b/src/msg.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/mtrie.cpp b/src/mtrie.cpp index a5b54a72..8a838905 100644 --- a/src/mtrie.cpp +++ b/src/mtrie.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -51,7 +61,7 @@ zmq::mtrie_t::~mtrie_t () delete next.node; next.node = 0; } - else + else if (count > 1) { for (unsigned short i = 0; i != count; ++i) delete next.table [i]; @@ -88,7 +98,7 @@ bool zmq::mtrie_t::add_helper (unsigned char *prefix_, size_t size_, count = 1; next.node = NULL; } - else + else if (count == 1) { unsigned char oldc = min; mtrie_t *oldp = next.node; @@ -101,7 +111,7 @@ bool zmq::mtrie_t::add_helper (unsigned char *prefix_, size_t size_, min = std::min (min, c); next.table [oldc - min] = oldp; } - else + else if (min < c) { // The new character is above the current character range. unsigned short old_count = count; @@ -242,7 +252,7 @@ void zmq::mtrie_t::rm_helper (pipe_t *pipe_, unsigned char **buff_, count = 0; } // Compact the node table if possible - else + else if (live_nodes == 1) { // If there's only one live node in the table we can // switch to using the more compact single-node diff --git a/src/mtrie.hpp b/src/mtrie.hpp index 6b89aebb..6d49380c 100644 --- a/src/mtrie.hpp +++ b/src/mtrie.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/mutex.hpp b/src/mutex.hpp index 26c30d37..80a38f5c 100644 --- a/src/mutex.hpp +++ b/src/mutex.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/null_mechanism.cpp b/src/null_mechanism.cpp index cb4b2644..d9157e20 100644 --- a/src/null_mechanism.cpp +++ b/src/null_mechanism.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/null_mechanism.hpp b/src/null_mechanism.hpp index 8802df3f..ff1eb96d 100644 --- a/src/null_mechanism.hpp +++ b/src/null_mechanism.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/object.cpp b/src/object.cpp index cdd991a3..ea4f7d56 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -110,7 +120,7 @@ void zmq::object_t::process_command (command_t &cmd_) case command_t::term_req: process_term_req (cmd_.args.term_req.object); break; - + case command_t::term: process_term (cmd_.args.term.linger); break; @@ -183,7 +193,7 @@ zmq::io_thread_t *zmq::object_t::choose_io_thread (uint64_t affinity_) void zmq::object_t::send_stop () { // 'stop' command goes always from administrative thread to - // the current object. + // the current object. command_t cmd; cmd.destination = this; cmd.type = command_t::stop; diff --git a/src/object.hpp b/src/object.hpp index ed9f45b5..73e5a9e2 100644 --- a/src/object.hpp +++ b/src/object.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/options.cpp b/src/options.cpp index 84b2a7b1..ea4f74c9 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/options.hpp b/src/options.hpp index 3bacec0e..b4a019cd 100644 --- a/src/options.hpp +++ b/src/options.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/own.cpp b/src/own.cpp index e3247aff..8a4da3a7 100644 --- a/src/own.cpp +++ b/src/own.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -172,7 +182,7 @@ void zmq::own_t::unregister_term_ack () term_acks--; // This may be a last ack we are waiting for before termination... - check_term_acks (); + check_term_acks (); } void zmq::own_t::process_term_ack () diff --git a/src/own.hpp b/src/own.hpp index 13f32a62..40be503f 100644 --- a/src/own.hpp +++ b/src/own.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/pair.cpp b/src/pair.cpp index 1ec431b9..ee2da2b2 100644 --- a/src/pair.cpp +++ b/src/pair.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/pair.hpp b/src/pair.hpp index 18d1bc67..f7f74a39 100644 --- a/src/pair.hpp +++ b/src/pair.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/pgm_receiver.cpp b/src/pgm_receiver.cpp index c556368b..261ff3c0 100644 --- a/src/pgm_receiver.cpp +++ b/src/pgm_receiver.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -34,7 +44,7 @@ #include "wire.hpp" #include "err.hpp" -zmq::pgm_receiver_t::pgm_receiver_t (class io_thread_t *parent_, +zmq::pgm_receiver_t::pgm_receiver_t (class io_thread_t *parent_, const options_t &options_) : io_object_t (parent_), has_rx_timer (false), diff --git a/src/pgm_receiver.hpp b/src/pgm_receiver.hpp index 89daf033..4594ab46 100644 --- a/src/pgm_receiver.hpp +++ b/src/pgm_receiver.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -45,7 +55,7 @@ namespace zmq class pgm_receiver_t : public io_object_t, public i_engine { - + public: pgm_receiver_t (zmq::io_thread_t *parent_, const options_t &options_); diff --git a/src/pgm_sender.cpp b/src/pgm_sender.cpp index 5d377f5e..593aa641 100644 --- a/src/pgm_sender.cpp +++ b/src/pgm_sender.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -34,7 +44,7 @@ #include "wire.hpp" #include "stdint.hpp" -zmq::pgm_sender_t::pgm_sender_t (io_thread_t *parent_, +zmq::pgm_sender_t::pgm_sender_t (io_thread_t *parent_, const options_t &options_) : io_object_t (parent_), has_tx_timer (false), @@ -81,7 +91,7 @@ void zmq::pgm_sender_t::plug (io_thread_t *io_thread_, session_base_t *session_) handle = add_fd (downlink_socket_fd); uplink_handle = add_fd (uplink_socket_fd); - rdata_notify_handle = add_fd (rdata_notify_fd); + rdata_notify_handle = add_fd (rdata_notify_fd); pending_notify_handle = add_fd (pending_notify_fd); // Set POLLIN. We wont never want to stop polling for uplink = we never @@ -159,11 +169,11 @@ void zmq::pgm_sender_t::in_event () void zmq::pgm_sender_t::out_event () { - // POLLOUT event from send socket. If write buffer is empty, + // POLLOUT event from send socket. If write buffer is empty, // try to read new data from the encoder. if (write_size == 0) { - // First two bytes (sizeof uint16_t) are used to store message + // First two bytes (sizeof uint16_t) are used to store message // offset in following steps. Note that by passing our buffer to // the get data function we prevent it from returning its own buffer. unsigned char *bf = out_buffer + sizeof (uint16_t); diff --git a/src/pgm_sender.hpp b/src/pgm_sender.hpp index e58e4789..bed05f75 100644 --- a/src/pgm_sender.hpp +++ b/src/pgm_sender.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -101,7 +111,7 @@ namespace zmq // Output buffer from pgm_socket. unsigned char *out_buffer; - + // Output buffer size. size_t out_buffer_size; diff --git a/src/pgm_socket.cpp b/src/pgm_socket.cpp index 186e09ae..da8a9591 100644 --- a/src/pgm_socket.cpp +++ b/src/pgm_socket.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -72,7 +82,7 @@ int zmq::pgm_socket_t::init_address (const char *network_, } *port_number = atoi (port_delim + 1); - + char network [256]; if (port_delim - network_ >= (int) sizeof (network) - 1) { errno = EINVAL; @@ -392,13 +402,13 @@ zmq::pgm_socket_t::~pgm_socket_t () { if (pgm_msgv) free (pgm_msgv); - if (sock) + if (sock) pgm_close (sock, TRUE); } // Get receiver fds. receive_fd_ is signaled for incoming packets, // waiting_pipe_fd_ is signaled for state driven events and data. -void zmq::pgm_socket_t::get_receiver_fds (fd_t *receive_fd_, +void zmq::pgm_socket_t::get_receiver_fds (fd_t *receive_fd_, fd_t *waiting_pipe_fd_) { socklen_t socklen; @@ -420,12 +430,12 @@ void zmq::pgm_socket_t::get_receiver_fds (fd_t *receive_fd_, zmq_assert (socklen == sizeof (*waiting_pipe_fd_)); } -// Get fds and store them into user allocated memory. +// Get fds and store them into user allocated memory. // send_fd is for non-blocking send wire notifications. // receive_fd_ is for incoming back-channel protocol packets. // rdata_notify_fd_ is raised for waiting repair transmissions. // pending_notify_fd_ is for state driven events. -void zmq::pgm_socket_t::get_sender_fds (fd_t *send_fd_, fd_t *receive_fd_, +void zmq::pgm_socket_t::get_sender_fds (fd_t *send_fd_, fd_t *receive_fd_, fd_t *rdata_notify_fd_, fd_t *pending_notify_fd_) { socklen_t socklen; @@ -465,7 +475,7 @@ void zmq::pgm_socket_t::get_sender_fds (fd_t *send_fd_, fd_t *receive_fd_, size_t zmq::pgm_socket_t::send (unsigned char *data_, size_t data_len_) { size_t nbytes = 0; - + const int status = pgm_send (sock, data_, data_len_, &nbytes); // We have to write all data as one packet. @@ -541,7 +551,7 @@ ssize_t zmq::pgm_socket_t::receive (void **raw_data_, const pgm_tsi_t **tsi_) { size_t raw_data_len = 0; - // We just sent all data from pgm_transport_recvmsgv up + // We just sent all data from pgm_transport_recvmsgv up // and have to return 0 that another engine in this thread is scheduled. if (nbytes_rec == nbytes_processed && nbytes_rec > 0) { @@ -562,7 +572,7 @@ ssize_t zmq::pgm_socket_t::receive (void **raw_data_, const pgm_tsi_t **tsi_) zmq_assert (nbytes_processed == 0); zmq_assert (nbytes_rec == 0); - // Receive a vector of Application Protocol Domain Unit's (APDUs) + // Receive a vector of Application Protocol Domain Unit's (APDUs) // from the transport. pgm_error_t *pgm_error = NULL; @@ -580,7 +590,7 @@ ssize_t zmq::pgm_socket_t::receive (void **raw_data_, const pgm_tsi_t **tsi_) zmq_assert (nbytes_rec == 0); - // In case if no RDATA/ODATA caused POLLIN 0 is + // In case if no RDATA/ODATA caused POLLIN 0 is // returned. nbytes_rec = 0; errno = EBUSY; @@ -636,8 +646,8 @@ ssize_t zmq::pgm_socket_t::receive (void **raw_data_, const pgm_tsi_t **tsi_) // Only one APDU per pgm_msgv_t structure is allowed. zmq_assert (pgm_msgv [pgm_msgv_processed].msgv_len == 1); - - struct pgm_sk_buff_t* skb = + + struct pgm_sk_buff_t* skb = pgm_msgv [pgm_msgv_processed].msgv_skb [0]; // Take pointers from pgm_msgv_t structure. @@ -669,7 +679,7 @@ void zmq::pgm_socket_t::process_upstream () zmq_assert (status != PGM_IO_STATUS_ERROR); // No data should be returned. - zmq_assert (dummy_bytes == 0 && (status == PGM_IO_STATUS_TIMER_PENDING || + zmq_assert (dummy_bytes == 0 && (status == PGM_IO_STATUS_TIMER_PENDING || status == PGM_IO_STATUS_RATE_LIMITED || status == PGM_IO_STATUS_WOULD_BLOCK)); @@ -688,7 +698,7 @@ int zmq::pgm_socket_t::compute_sqns (int tpdu_) { // Convert rate into B/ms. uint64_t rate = uint64_t (options.rate) / 8; - + // Compute the size of the buffer in bytes. uint64_t size = uint64_t (options.recovery_ivl) * rate; diff --git a/src/pgm_socket.hpp b/src/pgm_socket.hpp index 788cc3ff..c180f488 100644 --- a/src/pgm_socket.hpp +++ b/src/pgm_socket.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -57,11 +67,11 @@ namespace zmq // Resolve PGM socket address. static int init_address(const char *network_, struct pgm_addrinfo_t **addr, uint16_t *port_number); - + // Get receiver fds and store them into user allocated memory. void get_receiver_fds (fd_t *receive_fd_, fd_t *waiting_pipe_fd_); - // Get sender and receiver fds and store it to user allocated + // Get sender and receiver fds and store it to user allocated // memory. Receive fd is used to process NAKs from peers. void get_sender_fds (fd_t *send_fd_, fd_t *receive_fd_, fd_t *rdata_notify_fd_, fd_t *pending_notify_fd_); @@ -78,7 +88,7 @@ namespace zmq long get_rx_timeout (); long get_tx_timeout (); - // POLLIN on sender side should mean NAK or SPMR receiving. + // POLLIN on sender side should mean NAK or SPMR receiving. // process_upstream function is used to handle such a situation. void process_upstream (); @@ -86,7 +96,7 @@ namespace zmq // Compute size of the buffer based on rate and recovery interval. int compute_sqns (int tpdu_); - + // OpenPGM transport. pgm_sock_t* sock; @@ -94,7 +104,7 @@ namespace zmq // Associated socket options. options_t options; - + // true when pgm_socket should create receiving side. bool receiver; @@ -110,7 +120,7 @@ namespace zmq // How many bytes were processed from last pgm socket read. size_t nbytes_processed; - + // How many messages from pgm_msgv were already sent up. size_t pgm_msgv_processed; }; diff --git a/src/pipe.cpp b/src/pipe.cpp index 6ed6b47d..8d983604 100644 --- a/src/pipe.cpp +++ b/src/pipe.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/pipe.hpp b/src/pipe.hpp index 77341fb6..b7d7f8f4 100644 --- a/src/pipe.hpp +++ b/src/pipe.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/plain_client.cpp b/src/plain_client.cpp index 4bf41bfa..04be39f3 100644 --- a/src/plain_client.cpp +++ b/src/plain_client.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/plain_client.hpp b/src/plain_client.hpp index c76bd05d..b00fe17a 100644 --- a/src/plain_client.hpp +++ b/src/plain_client.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/plain_server.cpp b/src/plain_server.cpp index 211e9fa4..bddd4071 100644 --- a/src/plain_server.cpp +++ b/src/plain_server.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/plain_server.hpp b/src/plain_server.hpp index a66445c0..6cde4c71 100644 --- a/src/plain_server.hpp +++ b/src/plain_server.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/poll.cpp b/src/poll.cpp index 18778500..74484e31 100644 --- a/src/poll.cpp +++ b/src/poll.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/poll.hpp b/src/poll.hpp index c2d6c6eb..227e51c7 100644 --- a/src/poll.hpp +++ b/src/poll.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/poller.hpp b/src/poller.hpp index 0c04a194..b91e551c 100644 --- a/src/poller.hpp +++ b/src/poller.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/poller_base.cpp b/src/poller_base.cpp index a6d2f585..532d3072 100644 --- a/src/poller_base.cpp +++ b/src/poller_base.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/poller_base.hpp b/src/poller_base.hpp index cd666d4b..41720e38 100644 --- a/src/poller_base.hpp +++ b/src/poller_base.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/precompiled.cpp b/src/precompiled.cpp index 37b9014a..7cd571dc 100644 --- a/src/precompiled.cpp +++ b/src/precompiled.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/precompiled.hpp b/src/precompiled.hpp index 27187324..36447d21 100644 --- a/src/precompiled.hpp +++ b/src/precompiled.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/proxy.cpp b/src/proxy.cpp index 22b3ff6b..738a77ae 100644 --- a/src/proxy.cpp +++ b/src/proxy.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/proxy.hpp b/src/proxy.hpp index c055290b..14b056cd 100644 --- a/src/proxy.hpp +++ b/src/proxy.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/pub.cpp b/src/pub.cpp index 660e58e6..7e6eee43 100644 --- a/src/pub.cpp +++ b/src/pub.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/pub.hpp b/src/pub.hpp index af71bfe3..4a70dcc2 100644 --- a/src/pub.hpp +++ b/src/pub.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/pull.cpp b/src/pull.cpp index 85854539..4754cda1 100644 --- a/src/pull.cpp +++ b/src/pull.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/pull.hpp b/src/pull.hpp index f1580b4b..6a2f953a 100644 --- a/src/pull.hpp +++ b/src/pull.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/push.cpp b/src/push.cpp index 394880a3..65fac5ff 100644 --- a/src/push.cpp +++ b/src/push.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/push.hpp b/src/push.hpp index f6a96a7b..238ce82f 100644 --- a/src/push.hpp +++ b/src/push.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/random.cpp b/src/random.cpp index ab1e251d..5c9932b6 100644 --- a/src/random.cpp +++ b/src/random.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/random.hpp b/src/random.hpp index b4ea8434..bd47c611 100644 --- a/src/random.hpp +++ b/src/random.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/raw_decoder.cpp b/src/raw_decoder.cpp index 72011888..b98826cb 100644 --- a/src/raw_decoder.cpp +++ b/src/raw_decoder.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/raw_decoder.hpp b/src/raw_decoder.hpp index 000397c8..fc88add1 100644 --- a/src/raw_decoder.hpp +++ b/src/raw_decoder.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/raw_encoder.cpp b/src/raw_encoder.cpp index a7a0f043..d0881aae 100644 --- a/src/raw_encoder.cpp +++ b/src/raw_encoder.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/raw_encoder.hpp b/src/raw_encoder.hpp index f568724b..417cff4a 100644 --- a/src/raw_encoder.hpp +++ b/src/raw_encoder.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/reaper.cpp b/src/reaper.cpp index 015ae983..ea5f0c56 100644 --- a/src/reaper.cpp +++ b/src/reaper.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/reaper.hpp b/src/reaper.hpp index b5b67cf8..25a6186f 100644 --- a/src/reaper.hpp +++ b/src/reaper.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/rep.cpp b/src/rep.cpp index 58d49031..0efdec9c 100644 --- a/src/rep.cpp +++ b/src/rep.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/rep.hpp b/src/rep.hpp index 0dcf927e..177872e4 100644 --- a/src/rep.hpp +++ b/src/rep.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/req.cpp b/src/req.cpp index f47f2621..3a930349 100644 --- a/src/req.cpp +++ b/src/req.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/req.hpp b/src/req.hpp index 13816f68..66512cae 100644 --- a/src/req.hpp +++ b/src/req.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/router.cpp b/src/router.cpp index 792f4f23..fc46ae19 100644 --- a/src/router.cpp +++ b/src/router.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -34,7 +44,7 @@ zmq::router_t::router_t (class ctx_t *parent_, uint32_t tid_, int sid_) : next_rid (generate_random ()), mandatory (false), // raw_sock functionality in ROUTER is deprecated - raw_sock (false), + raw_sock (false), probe_router (false), handover (false) { @@ -118,8 +128,8 @@ int zmq::router_t::xsetsockopt (int option_, const void *optval_, return 0; } break; - - case ZMQ_ROUTER_HANDOVER: + + case ZMQ_ROUTER_HANDOVER: if (is_int && value >= 0) { handover = (value != 0); return 0; @@ -397,10 +407,10 @@ bool zmq::router_t::identify_peer (pipe_t *pipe_) connect_rid.length()); connect_rid.clear (); outpipes_t::iterator it = outpipes.find (identity); - if (it != outpipes.end ()) + if (it != outpipes.end ()) zmq_assert(false); // Not allowed to duplicate an existing rid } - else + else if (options.raw_sock) { // Always assign identity for raw-socket unsigned char buf [5]; buf [0] = 0; @@ -408,7 +418,7 @@ bool zmq::router_t::identify_peer (pipe_t *pipe_) identity = blob_t (buf, sizeof buf); } else - if (!options.raw_sock) { + if (!options.raw_sock) { // Pick up handshake cases and also case where next identity is set msg.init (); ok = pipe_->read (&msg); @@ -434,7 +444,7 @@ bool zmq::router_t::identify_peer (pipe_t *pipe_) return false; else { // We will allow the new connection to take over this - // identity. Temporarily assign a new identity to the + // identity. Temporarily assign a new identity to the // existing pipe so we can terminate it asynchronously. unsigned char buf [5]; buf [0] = 0; @@ -442,13 +452,13 @@ bool zmq::router_t::identify_peer (pipe_t *pipe_) blob_t new_identity = blob_t (buf, sizeof buf); it->second.pipe->set_identity (new_identity); - outpipe_t existing_outpipe = + outpipe_t existing_outpipe = {it->second.pipe, it->second.active}; - + ok = outpipes.insert (outpipes_t::value_type ( new_identity, existing_outpipe)).second; zmq_assert (ok); - + // Remove the existing identity entry to allow the new // connection to take the identity. outpipes.erase (it); diff --git a/src/router.hpp b/src/router.hpp index f5b1ff6c..9877217f 100644 --- a/src/router.hpp +++ b/src/router.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -108,7 +118,7 @@ namespace zmq // algorithm. This value is the next ID to use (if not used already). uint32_t next_rid; - // If true, report EAGAIN to the caller instead of silently dropping + // If true, report EAGAIN to the caller instead of silently dropping // the message targeting an unknown peer. bool mandatory; bool raw_sock; diff --git a/src/select.cpp b/src/select.cpp index cb73bb78..ec0d2e82 100644 --- a/src/select.cpp +++ b/src/select.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/select.hpp b/src/select.hpp index a35448b4..0eb29ec9 100644 --- a/src/select.hpp +++ b/src/select.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/session_base.cpp b/src/session_base.cpp index 548675df..86bfd8ff 100644 --- a/src/session_base.cpp +++ b/src/session_base.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/session_base.hpp b/src/session_base.hpp index 74858f3b..8730c271 100644 --- a/src/session_base.hpp +++ b/src/session_base.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/signaler.cpp b/src/signaler.cpp index 300e0dcc..e6fa9833 100644 --- a/src/signaler.cpp +++ b/src/signaler.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/signaler.hpp b/src/signaler.hpp index b66f0ae4..1ab25dc2 100644 --- a/src/signaler.hpp +++ b/src/signaler.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/socket_base.cpp b/src/socket_base.cpp index 0e0903c1..bff70684 100644 --- a/src/socket_base.cpp +++ b/src/socket_base.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -251,7 +261,7 @@ void zmq::socket_base_t::attach_pipe (pipe_t *pipe_, bool subscribe_to_all_) // First, register the pipe so that we can terminate it later on. pipe_->set_event_sink (this); pipes.push_back (pipe_); - + // Let the derived socket type know about new pipe. xattach_pipe (pipe_, subscribe_to_all_); @@ -632,9 +642,9 @@ int zmq::socket_base_t::connect (const char *addr_) } } #endif - + // TBD - Should we check address for ZMQ_HAVE_NORM??? - + #ifdef ZMQ_HAVE_OPENPGM if (protocol == "pgm" || protocol == "epgm") { struct pgm_addrinfo_t *res = NULL; @@ -932,7 +942,7 @@ int zmq::socket_base_t::close () { // Mark the socket as dead tag = 0xdeadbeef; - + // Transfer the ownership of the socket from this application thread // to the reaper thread which will take care of the rest of shutdown // process. diff --git a/src/socket_base.hpp b/src/socket_base.hpp index afbb36f4..171b5b8b 100644 --- a/src/socket_base.hpp +++ b/src/socket_base.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -164,7 +174,7 @@ namespace zmq // Monitor socket cleanup void stop_monitor (); - + // Next assigned name on a zmq_connect() call used by ROUTER and STREAM socket types std::string connect_rid; diff --git a/src/socks.cpp b/src/socks.cpp index 4ec8d738..ecd0e270 100644 --- a/src/socks.cpp +++ b/src/socks.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/socks.hpp b/src/socks.hpp index 8fe4594b..d64acd83 100644 --- a/src/socks.hpp +++ b/src/socks.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/socks_connecter.cpp b/src/socks_connecter.cpp index 91e11c54..a3b70436 100644 --- a/src/socks_connecter.cpp +++ b/src/socks_connecter.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/socks_connecter.hpp b/src/socks_connecter.hpp index 0443ff83..a3c5a94f 100644 --- a/src/socks_connecter.hpp +++ b/src/socks_connecter.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/stdint.hpp b/src/stdint.hpp index 2d8fb238..955e2bc2 100644 --- a/src/stdint.hpp +++ b/src/stdint.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/stream.cpp b/src/stream.cpp index 3d1b8b2f..112a116f 100644 --- a/src/stream.cpp +++ b/src/stream.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/stream.hpp b/src/stream.hpp index 5ea23754..741a56a2 100644 --- a/src/stream.hpp +++ b/src/stream.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -47,7 +57,7 @@ namespace zmq void xread_activated (zmq::pipe_t *pipe_); void xwrite_activated (zmq::pipe_t *pipe_); void xpipe_terminated (zmq::pipe_t *pipe_); - int xsetsockopt (int option_, const void *optval_, size_t optvallen_); + int xsetsockopt (int option_, const void *optval_, size_t optvallen_); private: // Generate peer's id and update lookup map void identify_peer (pipe_t *pipe_); diff --git a/src/stream_engine.cpp b/src/stream_engine.cpp index d783602e..87186cc0 100644 --- a/src/stream_engine.cpp +++ b/src/stream_engine.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/stream_engine.hpp b/src/stream_engine.hpp index 44c84f11..d42c6929 100644 --- a/src/stream_engine.hpp +++ b/src/stream_engine.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/sub.cpp b/src/sub.cpp index 3330b708..831230ad 100644 --- a/src/sub.cpp +++ b/src/sub.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/sub.hpp b/src/sub.hpp index 6360b479..1615effa 100644 --- a/src/sub.hpp +++ b/src/sub.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/tcp.cpp b/src/tcp.cpp old mode 100755 new mode 100644 index 3d646e42..21814104 --- a/src/tcp.cpp +++ b/src/tcp.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/tcp.hpp b/src/tcp.hpp index d2856ecf..130b4c89 100644 --- a/src/tcp.hpp +++ b/src/tcp.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -49,4 +59,4 @@ namespace zmq } -#endif +#endif diff --git a/src/tcp_address.cpp b/src/tcp_address.cpp index 53fbe0d9..c8689322 100644 --- a/src/tcp_address.cpp +++ b/src/tcp_address.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/tcp_address.hpp b/src/tcp_address.hpp index 6d24a58b..31e8c2a5 100644 --- a/src/tcp_address.hpp +++ b/src/tcp_address.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/tcp_connecter.cpp b/src/tcp_connecter.cpp index b714ecd1..fdbc45c2 100644 --- a/src/tcp_connecter.cpp +++ b/src/tcp_connecter.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/tcp_connecter.hpp b/src/tcp_connecter.hpp index 4ff0088e..340c7f56 100644 --- a/src/tcp_connecter.hpp +++ b/src/tcp_connecter.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/tcp_listener.cpp b/src/tcp_listener.cpp index f67f5006..05171b35 100644 --- a/src/tcp_listener.cpp +++ b/src/tcp_listener.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/tcp_listener.hpp b/src/tcp_listener.hpp index 22cdc364..4b9dc7ed 100644 --- a/src/tcp_listener.hpp +++ b/src/tcp_listener.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/thread.cpp b/src/thread.cpp index dcf18b1d..dc3d6d7f 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -48,7 +58,7 @@ void zmq::thread_t::start (thread_fn *tfn_, void *arg_) descriptor = (HANDLE) _beginthreadex (NULL, 0, &::thread_routine, this, 0 , NULL); #endif - win_assert (descriptor != NULL); + win_assert (descriptor != NULL); } void zmq::thread_t::stop () @@ -82,7 +92,7 @@ extern "C" posix_assert (rc); #endif - zmq::thread_t *self = (zmq::thread_t*) arg_; + zmq::thread_t *self = (zmq::thread_t*) arg_; self->tfn (self->arg); return NULL; } diff --git a/src/thread.hpp b/src/thread.hpp index 6c40e23b..bfb61d8e 100644 --- a/src/thread.hpp +++ b/src/thread.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -63,7 +73,7 @@ namespace zmq // they would not be accessible from the main C routine of the thread. thread_fn *tfn; void *arg; - + private: #ifdef ZMQ_HAVE_WINDOWS diff --git a/src/tipc_address.cpp b/src/tipc_address.cpp index 5e1e2cda..07f83ae8 100644 --- a/src/tipc_address.cpp +++ b/src/tipc_address.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/tipc_address.hpp b/src/tipc_address.hpp index 1d92481d..0d6baa20 100644 --- a/src/tipc_address.hpp +++ b/src/tipc_address.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/tipc_connecter.cpp b/src/tipc_connecter.cpp index 66707baa..11b53c50 100644 --- a/src/tipc_connecter.cpp +++ b/src/tipc_connecter.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/tipc_connecter.hpp b/src/tipc_connecter.hpp index 50843f6a..6bfc7677 100644 --- a/src/tipc_connecter.hpp +++ b/src/tipc_connecter.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/tipc_listener.cpp b/src/tipc_listener.cpp index 821cfa99..fb8df6c3 100644 --- a/src/tipc_listener.cpp +++ b/src/tipc_listener.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/tipc_listener.hpp b/src/tipc_listener.hpp index 1d86db19..06d201ac 100644 --- a/src/tipc_listener.hpp +++ b/src/tipc_listener.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/trie.cpp b/src/trie.cpp index e516c351..e48cac0a 100644 --- a/src/trie.cpp +++ b/src/trie.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/trie.hpp b/src/trie.hpp index 0bfd602c..d714c617 100644 --- a/src/trie.hpp +++ b/src/trie.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/v1_decoder.cpp b/src/v1_decoder.cpp index 388fe074..a21bb2f5 100644 --- a/src/v1_decoder.cpp +++ b/src/v1_decoder.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/v1_decoder.hpp b/src/v1_decoder.hpp index 3540e5e8..69207236 100644 --- a/src/v1_decoder.hpp +++ b/src/v1_decoder.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/v1_encoder.cpp b/src/v1_encoder.cpp index bbae005f..d77ccb25 100644 --- a/src/v1_encoder.cpp +++ b/src/v1_encoder.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/v1_encoder.hpp b/src/v1_encoder.hpp index 00a63ded..4636d190 100644 --- a/src/v1_encoder.hpp +++ b/src/v1_encoder.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/v2_decoder.cpp b/src/v2_decoder.cpp index e2d716b4..394b1e9f 100644 --- a/src/v2_decoder.cpp +++ b/src/v2_decoder.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/v2_decoder.hpp b/src/v2_decoder.hpp index 30bf1afc..14c48e4e 100644 --- a/src/v2_decoder.hpp +++ b/src/v2_decoder.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/v2_encoder.cpp b/src/v2_encoder.cpp index ff30119a..1adca93d 100644 --- a/src/v2_encoder.cpp +++ b/src/v2_encoder.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/v2_encoder.hpp b/src/v2_encoder.hpp index bc70d06a..a23f9780 100644 --- a/src/v2_encoder.hpp +++ b/src/v2_encoder.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/v2_protocol.hpp b/src/v2_protocol.hpp index 365e6879..4233343c 100644 --- a/src/v2_protocol.hpp +++ b/src/v2_protocol.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/windows.hpp b/src/windows.hpp old mode 100755 new mode 100644 index 5e98ffb8..3ced6adf --- a/src/windows.hpp +++ b/src/windows.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -40,7 +50,7 @@ #define _WIN32_WINNT 0x0501 #endif #endif - + #include #include #include diff --git a/src/wire.hpp b/src/wire.hpp index 3bc8ee4d..6c2bee0e 100644 --- a/src/wire.hpp +++ b/src/wire.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/xpub.cpp b/src/xpub.cpp index 7c9bcaea..445ef060 100644 --- a/src/xpub.cpp +++ b/src/xpub.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -135,7 +145,7 @@ int zmq::xpub_t::xsend (msg_t *msg_) int rc = -1; // Assume we fail if (lossy || dist.check_hwm ()) { if (dist.send_to_matching (msg_) == 0) { - // If we are at the end of multi-part message we can mark + // If we are at the end of multi-part message we can mark // all the pipes as non-matching. if (!msg_more) dist.unmatch (); diff --git a/src/xpub.hpp b/src/xpub.hpp index 89c7fa4b..549b670c 100644 --- a/src/xpub.hpp +++ b/src/xpub.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/xsub.cpp b/src/xsub.cpp index aaf51310..5d9efddf 100644 --- a/src/xsub.cpp +++ b/src/xsub.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -94,13 +104,13 @@ int zmq::xsub_t::xsend (msg_t *msg_) subscriptions.add (data + 1, size - 1); return dist.send_to_all (msg_); } - else + else if (size > 0 && *data == 0) { // Process unsubscribe message if (subscriptions.rm (data + 1, size - 1)) return dist.send_to_all (msg_); } - else + else // User message sent upstream to XPUB socket return dist.send_to_all (msg_); @@ -144,7 +154,7 @@ int zmq::xsub_t::xrecv (msg_t *msg_) return -1; // Check whether the message matches at least one subscription. - // Non-initial parts of the message are passed + // Non-initial parts of the message are passed if (more || !options.filter || match (msg_)) { more = msg_->flags () & msg_t::more ? true : false; return 0; diff --git a/src/xsub.hpp b/src/xsub.hpp index 7b3a3884..3a15fe7f 100644 --- a/src/xsub.hpp +++ b/src/xsub.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/ypipe.hpp b/src/ypipe.hpp index 8a6b0544..c3f2e96d 100644 --- a/src/ypipe.hpp +++ b/src/ypipe.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/ypipe_base.hpp b/src/ypipe_base.hpp index a3d67656..c541d2fb 100644 --- a/src/ypipe_base.hpp +++ b/src/ypipe_base.hpp @@ -1,18 +1,28 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/ypipe_conflate.hpp b/src/ypipe_conflate.hpp index 94698acf..683137a9 100644 --- a/src/ypipe_conflate.hpp +++ b/src/ypipe_conflate.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/yqueue.hpp b/src/yqueue.hpp index 583d3679..bd42b8a6 100644 --- a/src/yqueue.hpp +++ b/src/yqueue.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -33,7 +43,7 @@ namespace zmq // to minimise number of allocations/deallocations needed. Thus yqueue // allocates/deallocates elements in batches of N. // - // yqueue allows one thread to use push/back function and another one + // yqueue allows one thread to use push/back function and another one // to use pop/front functions. However, user must ensure that there's no // pop on the empty queue and that both threads don't access the same // element in unsynchronised manner. @@ -65,7 +75,7 @@ namespace zmq if (begin_chunk == end_chunk) { free (begin_chunk); break; - } + } chunk_t *o = begin_chunk; begin_chunk = begin_chunk->next; free (o); diff --git a/src/zmq.cpp b/src/zmq.cpp index 5c85fda6..f0f9a099 100644 --- a/src/zmq.cpp +++ b/src/zmq.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/src/zmq_utils.cpp b/src/zmq_utils.cpp index 85e4c439..f8a69714 100644 --- a/src/zmq_utils.cpp +++ b/src/zmq_utils.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -84,24 +94,24 @@ void zmq_threadclose(void* thread) // Maps base 256 to base 85 static char encoder [85 + 1] = { "0123456789" "abcdefghij" "klmnopqrst" "uvwxyzABCD" - "EFGHIJKLMN" "OPQRSTUVWX" "YZ.-:+=^!/" "*?&<>()[]{" + "EFGHIJKLMN" "OPQRSTUVWX" "YZ.-:+=^!/" "*?&<>()[]{" "}@%$#" }; // Maps base 85 to base 256 // We chop off lower 32 and higher 128 ranges static uint8_t decoder [96] = { - 0x00, 0x44, 0x00, 0x54, 0x53, 0x52, 0x48, 0x00, - 0x4B, 0x4C, 0x46, 0x41, 0x00, 0x3F, 0x3E, 0x45, - 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, - 0x08, 0x09, 0x40, 0x00, 0x49, 0x42, 0x4A, 0x47, - 0x51, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, - 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, 0x32, - 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, - 0x3B, 0x3C, 0x3D, 0x4D, 0x00, 0x4E, 0x43, 0x00, - 0x00, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, - 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, - 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, + 0x00, 0x44, 0x00, 0x54, 0x53, 0x52, 0x48, 0x00, + 0x4B, 0x4C, 0x46, 0x41, 0x00, 0x3F, 0x3E, 0x45, + 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, + 0x08, 0x09, 0x40, 0x00, 0x49, 0x42, 0x4A, 0x47, + 0x51, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, + 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, 0x32, + 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, + 0x3B, 0x3C, 0x3D, 0x4D, 0x00, 0x4E, 0x43, 0x00, + 0x00, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, + 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, + 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x4F, 0x00, 0x50, 0x00, 0x00 }; @@ -141,7 +151,7 @@ char *zmq_z85_encode (char *dest, const uint8_t *data, size_t size) // -------------------------------------------------------------------------- // Decode an encoded string into a binary frame; dest must be at least -// strlen (string) * 4 / 5 bytes long. Returns dest. strlen (string) +// strlen (string) * 4 / 5 bytes long. Returns dest. strlen (string) // must be a multiple of 5. // Returns NULL and sets errno = EINVAL for invalid input. diff --git a/tests/test_abstract_ipc.cpp b/tests/test_abstract_ipc.cpp index c6d87652..bb7e9ff1 100644 --- a/tests/test_abstract_ipc.cpp +++ b/tests/test_abstract_ipc.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -41,7 +51,7 @@ int main (void) assert (sc); rc = zmq_connect (sc, "ipc://@tmp-tester"); assert (rc == 0); - + bounce (sb, sc); rc = zmq_close (sc); diff --git a/tests/test_bind_src_address.cpp b/tests/test_bind_src_address.cpp index ac08e806..15a5ab37 100644 --- a/tests/test_bind_src_address.cpp +++ b/tests/test_bind_src_address.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_capabilities.cpp b/tests/test_capabilities.cpp index eaa8699f..f3188164 100644 --- a/tests/test_capabilities.cpp +++ b/tests/test_capabilities.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -32,25 +42,25 @@ int main (void) #else assert (!zmq_has ("pgm")); #endif - + #if defined (ZMQ_HAVE_TIPC) assert (zmq_has ("tipc")); #else assert (!zmq_has ("tipc")); #endif - + #if defined (ZMQ_HAVE_NORM) assert (zmq_has ("norm")); #else assert (!zmq_has ("norm")); #endif - + #if defined (HAVE_LIBSODIUM) assert (zmq_has ("curve")); #else assert (!zmq_has ("curve")); #endif - + #if defined (HAVE_LIBGSSAPI_KRB5) assert (zmq_has ("gssapi")); #else diff --git a/tests/test_conflate.cpp b/tests/test_conflate.cpp index 63480e3d..9acb7cb5 100644 --- a/tests/test_conflate.cpp +++ b/tests/test_conflate.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_connect_delay_tipc.cpp b/tests/test_connect_delay_tipc.cpp index 1fd4e306..dae8209b 100644 --- a/tests/test_connect_delay_tipc.cpp +++ b/tests/test_connect_delay_tipc.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_connect_resolve.cpp b/tests/test_connect_resolve.cpp index 6189500a..f9a7b9d7 100644 --- a/tests/test_connect_resolve.cpp +++ b/tests/test_connect_resolve.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -30,16 +40,16 @@ int main (void) int rc = zmq_connect (sock, "tcp://localhost:1234"); assert (rc == 0); - + rc = zmq_connect (sock, "tcp://localhost:invalid"); assert (rc == -1); rc = zmq_connect (sock, "tcp://in val id:1234"); assert (rc == -1); - + rc = zmq_connect (sock, "tcp://"); assert (rc == -1); - + rc = zmq_connect (sock, "tcp://192.168.0.200:*"); assert (rc == -1); diff --git a/tests/test_connect_rid.cpp b/tests/test_connect_rid.cpp index 23e493b9..827e4375 100644 --- a/tests/test_connect_rid.cpp +++ b/tests/test_connect_rid.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -42,7 +52,7 @@ void test_stream_2_stream(){ assert (rconn1); ret = zmq_setsockopt (rconn1, ZMQ_LINGER, &zero, sizeof (zero)); assert (0 == ret); - + // Do the connection. ret = zmq_setsockopt (rconn1, ZMQ_CONNECT_RID, "conn1", 6); assert (0 == ret); @@ -54,7 +64,7 @@ void test_stream_2_stream(){ assert (0 == ret); ret = zmq_connect (rconn1, bindip); assert (0 == ret); -*/ +*/ // Send data to the bound stream. ret = zmq_send (rconn1, "conn1", 6, ZMQ_SNDMORE); assert (6 == ret); @@ -73,7 +83,7 @@ void test_stream_2_stream(){ assert (ret); assert (0 == buff[0]); ret = zmq_recv (rbind, buff+128, 128, 0); - assert (5 == ret); + assert (5 == ret); assert ('h' == buff[128]); ret = zmq_unbind (rbind, bindip); @@ -105,7 +115,7 @@ void test_router_2_router(bool named){ // Create connection socket. rconn1 = zmq_socket (ctx, ZMQ_ROUTER); - assert (rconn1); + assert (rconn1); ret = zmq_setsockopt (rconn1, ZMQ_LINGER, &zero, sizeof (zero)); assert (0 == ret); @@ -115,12 +125,12 @@ void test_router_2_router(bool named){ ret = zmq_setsockopt (rconn1, ZMQ_IDENTITY, "Y", 1); } - // Make call to connect using a connect_rid. + // Make call to connect using a connect_rid. ret = zmq_setsockopt (rconn1, ZMQ_CONNECT_RID, "conn1", 6); assert (0 == ret); ret = zmq_connect (rconn1, bindip); assert (0 == ret); -/* Uncomment to test assert on duplicate rid +/* Uncomment to test assert on duplicate rid // Test duplicate connect attempt. ret = zmq_setsockopt (rconn1, ZMQ_CONNECT_RID, "conn1", 6); assert (0 == ret); @@ -135,9 +145,9 @@ void test_router_2_router(bool named){ // Receive the name. ret = zmq_recv (rbind, buff, 256, 0); - if (named) + if (named) assert (ret && 'Y' == buff[0]); - else + else assert (ret && 0 == buff[0]); // Receive the data. @@ -155,7 +165,7 @@ void test_router_2_router(bool named){ } ret = zmq_send_const (rbind, "ok", 3, 0); assert (3 == ret); - + // If bound socket identity naming a problem, we'll likely see something funky here. ret = zmq_recv (rconn1, buff, 256, 0); assert ('c' == buff[0] && 6 == ret); diff --git a/tests/test_ctx_destroy.cpp b/tests/test_ctx_destroy.cpp index d8ce961d..5152c713 100644 --- a/tests/test_ctx_destroy.cpp +++ b/tests/test_ctx_destroy.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -29,18 +39,18 @@ static void receiver (void *socket) void test_ctx_destroy() { int rc; - + // Set up our context and sockets void *ctx = zmq_ctx_new (); assert (ctx); - + void *socket = zmq_socket (ctx, ZMQ_PULL); assert (socket); // Close the socket rc = zmq_close (socket); assert (rc == 0); - + // Destroy the context rc = zmq_ctx_destroy (ctx); assert (rc == 0); @@ -49,11 +59,11 @@ void test_ctx_destroy() void test_ctx_shutdown() { int rc; - + // Set up our context and sockets void *ctx = zmq_ctx_new (); assert (ctx); - + void *socket = zmq_socket (ctx, ZMQ_PULL); assert (socket); diff --git a/tests/test_ctx_options.cpp b/tests/test_ctx_options.cpp index 17eccc9e..a84ef049 100644 --- a/tests/test_ctx_options.cpp +++ b/tests/test_ctx_options.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -24,11 +34,11 @@ int main (void) { setup_test_environment(); int rc; - + // Set up our context and sockets void *ctx = zmq_ctx_new (); assert (ctx); - + assert (zmq_ctx_get (ctx, ZMQ_MAX_SOCKETS) == ZMQ_MAX_SOCKETS_DFLT); #if defined(ZMQ_USE_SELECT) assert (zmq_ctx_get (ctx, ZMQ_SOCKET_LIMIT) == FD_SETSIZE - 1); @@ -38,10 +48,10 @@ int main (void) #endif assert (zmq_ctx_get (ctx, ZMQ_IO_THREADS) == ZMQ_IO_THREADS_DFLT); assert (zmq_ctx_get (ctx, ZMQ_IPV6) == 0); - + rc = zmq_ctx_set (ctx, ZMQ_IPV6, true); assert (zmq_ctx_get (ctx, ZMQ_IPV6) == 1); - + void *router = zmq_socket (ctx, ZMQ_ROUTER); int ipv6; size_t optsize = sizeof (int); @@ -51,7 +61,7 @@ int main (void) rc = zmq_close (router); assert (rc == 0); - + rc = zmq_ctx_term (ctx); assert (rc == 0); diff --git a/tests/test_diffserv.cpp b/tests/test_diffserv.cpp index 518a5f7c..accee26a 100644 --- a/tests/test_diffserv.cpp +++ b/tests/test_diffserv.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_disconnect_inproc.cpp b/tests/test_disconnect_inproc.cpp index 475ce0b0..28eacf8f 100644 --- a/tests/test_disconnect_inproc.cpp +++ b/tests/test_disconnect_inproc.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -37,21 +47,21 @@ int main(int, char**) { (pubSocket = zmq_socket(context, ZMQ_XPUB)) || printf("zmq_socket: %s\n", zmq_strerror(errno)); (subSocket = zmq_socket(context, ZMQ_SUB)) || printf("zmq_socket: %s\n", zmq_strerror(errno)); zmq_setsockopt(subSocket, ZMQ_SUBSCRIBE, "foo", 3) && printf("zmq_setsockopt: %s\n",zmq_strerror(errno)); - + zmq_bind(pubSocket, "inproc://someInProcDescriptor") && printf("zmq_bind: %s\n", zmq_strerror(errno)); //zmq_bind(pubSocket, "tcp://127.0.0.1:30010") && printf("zmq_bind: %s\n", zmq_strerror(errno)); - + int more; size_t more_size = sizeof(more); int iteration = 0; - + while (1) { zmq_pollitem_t items [] = { { subSocket, 0, ZMQ_POLLIN, 0 }, // read publications { pubSocket, 0, ZMQ_POLLIN, 0 }, // read subscriptions }; int rc = zmq_poll (items, 2, 100); - + if (items [1].revents & ZMQ_POLLIN) { while (1) { zmq_msg_t msg; @@ -62,7 +72,7 @@ int main(int, char**) { if (buffer[0] == 0) { assert(isSubscribed); isSubscribed = false; - } + } else { assert(!isSubscribed); isSubscribed = true; @@ -83,7 +93,7 @@ int main(int, char**) { zmq_msg_recv (&msg, subSocket, 0); zmq_getsockopt (subSocket, ZMQ_RCVMORE, &more, &more_size); zmq_msg_close (&msg); - + if (!more) { publicationsReceived++; break; // Last message part @@ -100,7 +110,7 @@ int main(int, char**) { } if (iteration > 4 && rc == 0) break; - + zmq_msg_t channelEnvlp; ZMQ_PREPARE_STRING(channelEnvlp, "foo", 3); zmq_msg_send (&channelEnvlp, pubSocket, ZMQ_SNDMORE) >= 0 || printf("zmq_msg_send: %s\n",zmq_strerror(errno)); @@ -118,7 +128,7 @@ int main(int, char**) { zmq_close(pubSocket) && printf("zmq_close: %s", zmq_strerror(errno)); zmq_close(subSocket) && printf("zmq_close: %s", zmq_strerror(errno)); - + zmq_ctx_term(context); return 0; } diff --git a/tests/test_filter_ipc.cpp b/tests/test_filter_ipc.cpp index 00518f71..2eca13b0 100644 --- a/tests/test_filter_ipc.cpp +++ b/tests/test_filter_ipc.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -97,7 +107,7 @@ static void run_test (int opt, T optval, int expected_error, int bounce_test) rc = zmq_connect (sc, endpoint); assert (rc == 0); - + if (bounce_test > 0) bounce (sb, sc); else diff --git a/tests/test_fork.cpp b/tests/test_fork.cpp index 59fab3e7..52304cd5 100644 --- a/tests/test_fork.cpp +++ b/tests/test_fork.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -28,7 +38,7 @@ int main (void) setup_test_environment (); void *ctx = zmq_ctx_new (); assert (ctx); - + // Create and bind pull socket to receive messages void *pull = zmq_socket (ctx, ZMQ_PULL); assert (pull); @@ -52,11 +62,11 @@ int main (void) int count; for (count = 0; count < NUM_MESSAGES; count++) zmq_send (push, "Hello", 5, 0); - + zmq_close (push); zmq_ctx_destroy (child_ctx); exit (0); - } + } else { // Parent process int count; @@ -68,7 +78,7 @@ int main (void) int child_status; while (true) { rc = waitpid (pid, &child_status, 0); - if (rc == -1 && errno == EINTR) + if (rc == -1 && errno == EINTR) continue; assert (rc > 0); // Verify the status code of the child was zero diff --git a/tests/test_hwm.cpp b/tests/test_hwm.cpp index 4903248c..50f95bbd 100644 --- a/tests/test_hwm.cpp +++ b/tests/test_hwm.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -255,7 +265,7 @@ int test_inproc_bind_and_close_first (int send_hwm, int /* recv_hwm */) int main (void) { setup_test_environment(); - + int count; // Default values are 1000 on send and 1000 one receive, so 2000 total diff --git a/tests/test_hwm_pubsub.cpp b/tests/test_hwm_pubsub.cpp index 8f6ba41d..a46fadf2 100644 --- a/tests/test_hwm_pubsub.cpp +++ b/tests/test_hwm_pubsub.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -146,7 +156,7 @@ int test_blocking (int send_hwm, int msgCnt) int main (void) { setup_test_environment(); - + int count; // send 1000 msg on hwm 1000, receive 1000 diff --git a/tests/test_id2fd.cpp b/tests/test_id2fd.cpp index 0882ccba..b7507f22 100644 --- a/tests/test_id2fd.cpp +++ b/tests/test_id2fd.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -26,7 +36,7 @@ int main (void) void *ctx = zmq_ctx_new (); assert (ctx); - + void *client = zmq_socket (ctx, ZMQ_REQ); assert (client); @@ -38,45 +48,45 @@ int main (void) assert (rc == 0); rc = zmq_connect (client, "tcp://127.0.0.1:9998"); assert (rc == 0); - + rc=zmq_send(client,"1234567890",10,0); assert (rc != -1); - + int partnumber=1; int recvfd=-1; zmq_msg_t part; do { /* if not first free prev message part */ - if (partnumber!=1) zmq_msg_close (&part); + if (partnumber!=1) zmq_msg_close (&part); /* Create an empty ØMQ message to hold the message part */ int rc = zmq_msg_init (&part); assert (rc == 0); - + /* Block until a message is available to be received from socket */ rc = zmq_msg_recv (&part,server, 0); assert (rc != -1); if (partnumber==1) {// this is the identity of the receiving pipe - + //buffer for zmq_getsockopt / ZMQ_IDENTITY_FD - char idbuf[255]; + char idbuf[255]; size_t idbufsz=zmq_msg_size (&part); - + assert (idbufsz<=255); memcpy(idbuf,zmq_msg_data(&part),idbufsz); - + rc = zmq_getsockopt (server, ZMQ_IDENTITY_FD, idbuf, &idbufsz); assert (rc == 0); - + memcpy(&recvfd,idbuf,sizeof(recvfd)); - + //depending on your system this should be around 14 assert (recvfd > 0); } partnumber++; } while (zmq_msg_more(&part)); - zmq_msg_close (&part); + zmq_msg_close (&part); close_zero_linger (client); close_zero_linger (server); diff --git a/tests/test_immediate.cpp b/tests/test_immediate.cpp index 863b7463..f658419d 100644 --- a/tests/test_immediate.cpp +++ b/tests/test_immediate.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file - - This file is part of 0MQ. + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - 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 + This file is part of libzmq, the ZeroMQ core engine in C++. + + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -25,13 +35,13 @@ int main (void) int val; int rc; char buffer[16]; - // TEST 1. + // TEST 1. // First we're going to attempt to send messages to two // pipes, one connected, the other not. We should see // the PUSH load balancing to both pipes, and hence half // of the messages getting queued, as connect() creates a - // pipe immediately. - + // pipe immediately. + void *context = zmq_ctx_new(); assert (context); void *to = zmq_socket(context, ZMQ_PULL); @@ -53,7 +63,7 @@ int main (void) // This pipe will not connect rc = zmq_connect (from, "tcp://localhost:5556"); assert (rc == 0); - // This pipe will + // This pipe will rc = zmq_connect (from, "tcp://localhost:6555"); assert (rc == 0); @@ -89,12 +99,12 @@ int main (void) assert (rc == 0); // TEST 2 - // This time we will do the same thing, connect two pipes, - // one of which will succeed in connecting to a bound - // receiver, the other of which will fail. However, we will - // also set the delay attach on connect flag, which should + // This time we will do the same thing, connect two pipes, + // one of which will succeed in connecting to a bound + // receiver, the other of which will fail. However, we will + // also set the delay attach on connect flag, which should // cause the pipe attachment to be delayed until the connection - // succeeds. + // succeeds. context = zmq_ctx_new(); // Bind the valid socket @@ -134,7 +144,7 @@ int main (void) } rc = zmq_setsockopt (to, ZMQ_RCVTIMEO, &timeout, sizeof (int)); assert (rc == 0); - + seen = 0; while (true) { rc = zmq_recv (to, &buffer, sizeof (buffer), 0); @@ -149,7 +159,7 @@ int main (void) rc = zmq_close (to); assert (rc == 0); - + rc = zmq_ctx_term (context); assert (rc == 0); @@ -184,17 +194,17 @@ int main (void) assert (rc == 5); rc = zmq_recv (frontend, buffer, 255, 0); assert (rc == 5); - + // Send message from frontend to backend rc = zmq_send (frontend, "Hello", 5, ZMQ_DONTWAIT); assert (rc == 5); - + rc = zmq_close (backend); assert (rc == 0); // Give time to process disconnect msleep (SETTLE_TIME * 10); - + // Send a message, should fail rc = zmq_send (frontend, "Hello", 5, ZMQ_DONTWAIT); assert (rc == -1); @@ -216,10 +226,10 @@ int main (void) // After the reconnect, should succeed rc = zmq_send (frontend, "Hello", 5, ZMQ_DONTWAIT); assert (rc == 5); - + rc = zmq_close (backend); assert (rc == 0); - + rc = zmq_close (frontend); assert (rc == 0); diff --git a/tests/test_inproc_connect.cpp b/tests/test_inproc_connect.cpp index 4938baa4..106765db 100644 --- a/tests/test_inproc_connect.cpp +++ b/tests/test_inproc_connect.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_invalid_rep.cpp b/tests/test_invalid_rep.cpp index 810eb7ad..9acdc1dc 100644 --- a/tests/test_invalid_rep.cpp +++ b/tests/test_invalid_rep.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -25,13 +35,13 @@ int main (void) // Create REQ/ROUTER wiring. void *ctx = zmq_ctx_new (); assert (ctx); - + void *router_socket = zmq_socket (ctx, ZMQ_ROUTER); assert (router_socket); - + void *req_socket = zmq_socket (ctx, ZMQ_REQ); assert (req_socket); - + int linger = 0; int rc = zmq_setsockopt (router_socket, ZMQ_LINGER, &linger, sizeof (int)); assert (rc == 0); diff --git a/tests/test_iov.cpp b/tests/test_iov.cpp index 5dd4f74c..d2c23528 100644 --- a/tests/test_iov.cpp +++ b/tests/test_iov.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -48,7 +58,7 @@ void do_check(void* sb, void* sc, unsigned int msgsz) struct iovec ibuffer[32] ; memset(&ibuffer[0], 0, sizeof(ibuffer)); - + size_t count = 10; rc = zmq_recviov(sb,&ibuffer[0],&count,0); assert (rc == 10); @@ -63,7 +73,7 @@ void do_check(void* sb, void* sc, unsigned int msgsz) // free up the memory free(ibuffer[count-1].iov_base); } - + assert ( sum == rsum ); } @@ -73,16 +83,16 @@ int main (void) void *ctx = zmq_ctx_new (); assert (ctx); int rc; - + void *sb = zmq_socket (ctx, ZMQ_PULL); assert (sb); - + rc = zmq_bind (sb, "inproc://a"); assert (rc == 0); msleep (SETTLE_TIME); void *sc = zmq_socket (ctx, ZMQ_PUSH); - + rc = zmq_connect (sc, "inproc://a"); assert (rc == 0); diff --git a/tests/test_ipc_wildcard.cpp b/tests/test_ipc_wildcard.cpp index 73b8bb87..140e5542 100644 --- a/tests/test_ipc_wildcard.cpp +++ b/tests/test_ipc_wildcard.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -39,7 +49,7 @@ int main (void) assert (sc); rc = zmq_connect (sc, endpoint); assert (rc == 0); - + bounce (sb, sc); rc = zmq_close (sc); diff --git a/tests/test_issue_566.cpp b/tests/test_issue_566.cpp index 8500a867..3d10e035 100644 --- a/tests/test_issue_566.cpp +++ b/tests/test_issue_566.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -27,20 +37,20 @@ int main (void) { setup_test_environment(); - + void *ctx1 = zmq_ctx_new (); assert (ctx1); void *ctx2 = zmq_ctx_new (); assert (ctx2); - void *router = zmq_socket (ctx1, ZMQ_ROUTER); + void *router = zmq_socket (ctx1, ZMQ_ROUTER); int on = 1; int rc = zmq_setsockopt (router, ZMQ_ROUTER_MANDATORY, &on, sizeof (on)); assert (rc == 0); rc = zmq_bind (router, "tcp://127.0.0.1:5555"); assert (rc != -1); - + // Repeat often enough to be sure this works as it should for (int cycle = 0; cycle < 100; cycle++) { // Create dealer with unique explicit identity diff --git a/tests/test_last_endpoint.cpp b/tests/test_last_endpoint.cpp index 6722951b..213ace5a 100644 --- a/tests/test_last_endpoint.cpp +++ b/tests/test_last_endpoint.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -47,7 +57,7 @@ int main (void) rc = zmq_close (sb); assert (rc == 0); - + rc = zmq_ctx_term (ctx); assert (rc == 0); diff --git a/tests/test_many_sockets.cpp b/tests/test_many_sockets.cpp index 5d3cf1b8..d54d6cf7 100644 --- a/tests/test_many_sockets.cpp +++ b/tests/test_many_sockets.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_metadata.cpp b/tests/test_metadata.cpp index 28688b10..2c749d6e 100644 --- a/tests/test_metadata.cpp +++ b/tests/test_metadata.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -41,7 +51,7 @@ zap_handler (void *handler) assert (streq (version, "1.0")); assert (streq (mechanism, "NULL")); - + s_sendmore (handler, version); s_sendmore (handler, sequence); if (streq (domain, "DOMAIN")) { diff --git a/tests/test_monitor.cpp b/tests/test_monitor.cpp index 90b314b5..56f6e7aa 100644 --- a/tests/test_monitor.cpp +++ b/tests/test_monitor.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -27,12 +37,12 @@ static int get_monitor_event (void *monitor, int *value, char **address) { // First frame in message contains event number and value - zmq_msg_t msg; + zmq_msg_t msg; zmq_msg_init (&msg); if (zmq_msg_recv (&msg, monitor, 0) == -1) return -1; // Interruped, presumably assert (zmq_msg_more (&msg)); - + uint8_t *data = (uint8_t *) zmq_msg_data (&msg); uint16_t event = *(uint16_t *) (data); if (value) @@ -43,7 +53,7 @@ get_monitor_event (void *monitor, int *value, char **address) if (zmq_msg_recv (&msg, monitor, 0) == -1) return -1; // Interruped, presumably assert (!zmq_msg_more (&msg)); - + if (address) { uint8_t *data = (uint8_t *) zmq_msg_data (&msg); size_t size = zmq_msg_size (&msg); @@ -60,7 +70,7 @@ int main (void) void *ctx = zmq_ctx_new (); assert (ctx); - + // We'll monitor these two sockets void *client = zmq_socket (ctx, ZMQ_DEALER); assert (client); @@ -89,7 +99,7 @@ int main (void) assert (rc == 0); rc = zmq_connect (server_mon, "inproc://monitor-server"); assert (rc == 0); - + // Now do a basic ping test rc = zmq_bind (server, "tcp://127.0.0.1:9998"); assert (rc == 0); @@ -100,7 +110,7 @@ int main (void) // Close client and server close_zero_linger (client); close_zero_linger (server); - + // Now collect and check events from both sockets int event = get_monitor_event (client_mon, NULL, NULL); if (event == ZMQ_EVENT_CONNECT_DELAYED) @@ -118,7 +128,7 @@ int main (void) assert (event == ZMQ_EVENT_CLOSED); event = get_monitor_event (server_mon, NULL, NULL); assert (event == ZMQ_EVENT_MONITOR_STOPPED); - + // Close down the sockets close_zero_linger (client_mon); close_zero_linger (server_mon); diff --git a/tests/test_msg_flags.cpp b/tests/test_msg_flags.cpp index 4fdd7a1e..3cc95454 100644 --- a/tests/test_msg_flags.cpp +++ b/tests/test_msg_flags.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_pair_inproc.cpp b/tests/test_pair_inproc.cpp index d6637c0f..1b485273 100644 --- a/tests/test_pair_inproc.cpp +++ b/tests/test_pair_inproc.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -34,15 +44,15 @@ int main (void) assert (sc); rc = zmq_connect (sc, "inproc://a"); assert (rc == 0); - + bounce (sb, sc); - + // Test zmq_send_const rc = zmq_send_const (sb, "foo", 3, ZMQ_SNDMORE); assert (rc == 3); rc = zmq_send_const (sb, "foobar", 6, 0); assert (rc == 6); - + zmq_msg_t msg; rc = zmq_msg_init (&msg); assert (rc == 0); @@ -55,7 +65,7 @@ int main (void) assert (rc == 6); data = zmq_msg_data (&msg); assert (memcmp ("foobar", data, 6) == 0); - + // Cleanup rc = zmq_close (sc); diff --git a/tests/test_pair_ipc.cpp b/tests/test_pair_ipc.cpp index 819a7b3d..b20ab268 100644 --- a/tests/test_pair_ipc.cpp +++ b/tests/test_pair_ipc.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -34,7 +44,7 @@ int main (void) assert (sc); rc = zmq_connect (sc, "ipc:///tmp/tester"); assert (rc == 0); - + bounce (sb, sc); rc = zmq_close (sc); diff --git a/tests/test_pair_tcp.cpp b/tests/test_pair_tcp.cpp index a007c397..f4577ad2 100644 --- a/tests/test_pair_tcp.cpp +++ b/tests/test_pair_tcp.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -34,7 +44,7 @@ int main (void) assert (sc); rc = zmq_connect (sc, "tcp://127.0.0.1:5560"); assert (rc == 0); - + bounce (sb, sc); rc = zmq_close (sc); diff --git a/tests/test_pair_tipc.cpp b/tests/test_pair_tipc.cpp index 9cca6394..1b284add 100644 --- a/tests/test_pair_tipc.cpp +++ b/tests/test_pair_tipc.cpp @@ -3,17 +3,27 @@ Copyright (c) 2011 iMatix Corporation Copyright (c) 2010-2011 Other contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_probe_router.cpp b/tests/test_probe_router.cpp index 093f41a8..ac67caf3 100644 --- a/tests/test_probe_router.cpp +++ b/tests/test_probe_router.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -24,7 +34,7 @@ int main (void) setup_test_environment(); void *ctx = zmq_ctx_new (); assert (ctx); - + // Create server and bind to endpoint void *server = zmq_socket (ctx, ZMQ_ROUTER); assert (server); @@ -55,10 +65,10 @@ int main (void) assert (rc == 1); rc = zmq_send (server, "Hello", 5, 0); assert (rc == 5); - + rc = zmq_recv (client, buffer, 255, 0); assert (rc == 5); - + rc = zmq_close (server); assert (rc == 0); diff --git a/tests/test_proxy.cpp b/tests/test_proxy.cpp index 381a90ce..425fb1e1 100644 --- a/tests/test_proxy.cpp +++ b/tests/test_proxy.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_proxy_terminate.cpp b/tests/test_proxy_terminate.cpp index 83e70d4b..9f688fb6 100644 --- a/tests/test_proxy_terminate.cpp +++ b/tests/test_proxy_terminate.cpp @@ -1,17 +1,27 @@ /* Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_req_correlate.cpp b/tests/test_req_correlate.cpp index af5a583b..4200d1cc 100644 --- a/tests/test_req_correlate.cpp +++ b/tests/test_req_correlate.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_req_relaxed.cpp b/tests/test_req_relaxed.cpp index 03915d0d..84051ecd 100644 --- a/tests/test_req_relaxed.cpp +++ b/tests/test_req_relaxed.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_reqrep_device.cpp b/tests/test_reqrep_device.cpp index 4ea8d0c6..e231c592 100644 --- a/tests/test_reqrep_device.cpp +++ b/tests/test_reqrep_device.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_reqrep_device_tipc.cpp b/tests/test_reqrep_device_tipc.cpp index ffc6ff9e..b617f8ac 100644 --- a/tests/test_reqrep_device_tipc.cpp +++ b/tests/test_reqrep_device_tipc.cpp @@ -3,17 +3,27 @@ Copyright (c) 2011 VMware, Inc. Copyright (c) 2010-2011 Other contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_reqrep_inproc.cpp b/tests/test_reqrep_inproc.cpp index acecafce..1e9eb1f5 100644 --- a/tests/test_reqrep_inproc.cpp +++ b/tests/test_reqrep_inproc.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -34,7 +44,7 @@ int main (void) assert (sc); rc = zmq_connect (sc, "inproc://a"); assert (rc == 0); - + bounce (sb, sc); rc = zmq_close (sc); diff --git a/tests/test_reqrep_ipc.cpp b/tests/test_reqrep_ipc.cpp index 8c0837ee..c11d1b0f 100644 --- a/tests/test_reqrep_ipc.cpp +++ b/tests/test_reqrep_ipc.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -34,7 +44,7 @@ int main (void) assert (sc); rc = zmq_connect (sc, "ipc:///tmp/tester"); assert (rc == 0); - + bounce (sb, sc); rc = zmq_close (sc); diff --git a/tests/test_reqrep_tcp.cpp b/tests/test_reqrep_tcp.cpp index f6f180e5..f1475a35 100644 --- a/tests/test_reqrep_tcp.cpp +++ b/tests/test_reqrep_tcp.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -34,7 +44,7 @@ int main (void) assert (sc); rc = zmq_connect (sc, "tcp://127.0.0.1:5560"); assert (rc == 0); - + bounce (sb, sc); rc = zmq_close (sc); diff --git a/tests/test_reqrep_tipc.cpp b/tests/test_reqrep_tipc.cpp index fabe19f3..bd0e4116 100644 --- a/tests/test_reqrep_tipc.cpp +++ b/tests/test_reqrep_tipc.cpp @@ -3,17 +3,27 @@ Copyright (c) 2011 iMatix Corporation Copyright (c) 2010-2011 Other contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_router_handover.cpp b/tests/test_router_handover.cpp index bed2d636..99f904ce 100644 --- a/tests/test_router_handover.cpp +++ b/tests/test_router_handover.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -42,7 +52,7 @@ int main (void) assert (rc == 0); rc = zmq_connect (dealer_one, "tcp://127.0.0.1:5560"); assert (rc == 0); - + // Get message from dealer to know when connection is ready char buffer [255]; rc = zmq_send (dealer_one, "Hello", 5, 0); @@ -70,7 +80,7 @@ int main (void) rc = zmq_recv (router, buffer, 255, 0); assert (rc == 5); - // Send a message to 'X' identity. This should be delivered + // Send a message to 'X' identity. This should be delivered // to the second dealer, instead of the first beccause of the handover. rc = zmq_send (router, "X", 1, ZMQ_SNDMORE); assert (rc == 1); @@ -78,13 +88,13 @@ int main (void) assert (rc == 5); // Ensure that the first dealer doesn't receive the message - // but the second one does + // but the second one does rc = zmq_recv (dealer_one, buffer, 255, ZMQ_NOBLOCK); assert (rc == -1); rc = zmq_recv (dealer_two, buffer, 255, 0); assert (rc == 5); - + rc = zmq_close (router); assert (rc == 0); diff --git a/tests/test_router_mandatory.cpp b/tests/test_router_mandatory.cpp index ca8fb24e..1e784b94 100644 --- a/tests/test_router_mandatory.cpp +++ b/tests/test_router_mandatory.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -67,7 +77,7 @@ int main (void) assert (rc == 1); rc = zmq_send (router, "Hello", 5, 0); assert (rc == 5); - + rc = zmq_close (router); assert (rc == 0); diff --git a/tests/test_router_mandatory_hwm.cpp b/tests/test_router_mandatory_hwm.cpp index 78066f5d..7c808410 100644 --- a/tests/test_router_mandatory_hwm.cpp +++ b/tests/test_router_mandatory_hwm.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_router_mandatory_tipc.cpp b/tests/test_router_mandatory_tipc.cpp index 0e972bbe..ca961790 100644 --- a/tests/test_router_mandatory_tipc.cpp +++ b/tests/test_router_mandatory_tipc.cpp @@ -3,17 +3,27 @@ Copyright (c) 2011 iMatix Corporation Copyright (c) 2010-2011 Other contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_security_curve.cpp b/tests/test_security_curve.cpp index d1a3f2e0..04cf81a3 100644 --- a/tests/test_security_curve.cpp +++ b/tests/test_security_curve.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -228,7 +238,7 @@ int main (void) assert (rc == 0); expect_bounce_fail (server, client); close_zero_linger (client); - + // Unauthenticated messages from a vanilla socket shouldn't be received struct sockaddr_in ip4addr; int s; diff --git a/tests/test_security_null.cpp b/tests/test_security_null.cpp index 6b74e8ce..31d24556 100644 --- a/tests/test_security_null.cpp +++ b/tests/test_security_null.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -47,7 +57,7 @@ zap_handler (void *handler) assert (streq (version, "1.0")); assert (streq (mechanism, "NULL")); - + s_sendmore (handler, version); s_sendmore (handler, sequence); if (streq (domain, "TEST")) { @@ -88,7 +98,7 @@ int main (void) void *zap_thread = zmq_threadstart (&zap_handler, handler); // We bounce between a binding server and a connecting client - + // We first test client/server with no ZAP domain // Libzmq does not call our ZAP handler, the connect must succeed void *server = zmq_socket (ctx, ZMQ_DEALER); @@ -103,7 +113,7 @@ int main (void) close_zero_linger (client); close_zero_linger (server); - // Now define a ZAP domain for the server; this enables + // Now define a ZAP domain for the server; this enables // authentication. We're using the wrong domain so this test // must fail. server = zmq_socket (ctx, ZMQ_DEALER); diff --git a/tests/test_security_plain.cpp b/tests/test_security_plain.cpp index c257840c..1f1be617 100644 --- a/tests/test_security_plain.cpp +++ b/tests/test_security_plain.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_shutdown_stress.cpp b/tests/test_shutdown_stress.cpp index 27dd605a..e4e1658b 100644 --- a/tests/test_shutdown_stress.cpp +++ b/tests/test_shutdown_stress.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_shutdown_stress_tipc.cpp b/tests/test_shutdown_stress_tipc.cpp index 51a5b988..ac8e72b3 100644 --- a/tests/test_shutdown_stress_tipc.cpp +++ b/tests/test_shutdown_stress_tipc.cpp @@ -3,17 +3,27 @@ Copyright (c) 2011 iMatix Corporation Copyright (c) 2010-2011 Other contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_spec_dealer.cpp b/tests/test_spec_dealer.cpp index e9294889..06657a1a 100644 --- a/tests/test_spec_dealer.cpp +++ b/tests/test_spec_dealer.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_spec_pushpull.cpp b/tests/test_spec_pushpull.cpp index 35b694c3..3bcb55ec 100644 --- a/tests/test_spec_pushpull.cpp +++ b/tests/test_spec_pushpull.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_spec_rep.cpp b/tests/test_spec_rep.cpp index 9bdb8aab..64ecf1d2 100644 --- a/tests/test_spec_rep.cpp +++ b/tests/test_spec_rep.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_spec_req.cpp b/tests/test_spec_req.cpp index d8a9a3a1..39cbda6d 100644 --- a/tests/test_spec_req.cpp +++ b/tests/test_spec_req.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -43,11 +53,11 @@ void test_round_robin_out (void *ctx) rc = zmq_connect (rep [peer], connect_address); assert (rc == 0); } - // We have to give the connects time to finish otherwise the requests + // We have to give the connects time to finish otherwise the requests // will not properly round-robin. We could alternatively connect the // REQ sockets to the REP sockets. msleep (SETTLE_TIME); - + // Send our peer-replies, and expect every REP it used once in order for (size_t peer = 0; peer < services; peer++) { s_send_seq (req, "ABC", SEQ_END); @@ -78,7 +88,7 @@ void test_req_only_listens_to_current_peer (void *ctx) const size_t services = 3; void *router [services]; - + for (size_t i = 0; i < services; ++i) { router [i] = zmq_socket (ctx, ZMQ_ROUTER); assert (router [i]); @@ -234,7 +244,7 @@ int main (void) // application. test_req_message_format (ctx); - // SHALL block on sending, or return a suitable error, when it has no + // SHALL block on sending, or return a suitable error, when it has no // connected peers. test_block_on_send_no_peers (ctx); diff --git a/tests/test_spec_router.cpp b/tests/test_spec_router.cpp index 39984ffc..a5101a92 100644 --- a/tests/test_spec_router.cpp +++ b/tests/test_spec_router.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_srcfd.cpp b/tests/test_srcfd.cpp index 062a85ea..7f9f982e 100644 --- a/tests/test_srcfd.cpp +++ b/tests/test_srcfd.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -34,7 +44,7 @@ int main (void) { int rc; - + setup_test_environment(); // Create the infrastructure void *ctx = zmq_ctx_new (); @@ -60,7 +70,7 @@ int main (void) zmq_recvmsg(rep, &msg, 0); assert(zmq_msg_size(&msg) == MSG_SIZE); - + // get the messages source file descriptor int srcFd = zmq_msg_get(&msg, ZMQ_SRCFD); assert(srcFd >= 0); @@ -85,12 +95,12 @@ int main (void) // sleep a bit for the socket to be freed usleep(30000); - + // getting name from closed socket will fail rc = getpeername (srcFd, (struct sockaddr*) &ss, &addrlen); assert (rc == -1); assert (errno == EBADF); - + rc = zmq_ctx_term (ctx); assert (rc == 0); diff --git a/tests/test_stream.cpp b/tests/test_stream.cpp index e5328545..d241d148 100644 --- a/tests/test_stream.cpp +++ b/tests/test_stream.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_stream_disconnect.cpp b/tests/test_stream_disconnect.cpp index 1233c859..125023b8 100644 --- a/tests/test_stream_disconnect.cpp +++ b/tests/test_stream_disconnect.cpp @@ -1,17 +1,27 @@ /* Copyright (c) 2007-2013 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_stream_empty.cpp b/tests/test_stream_empty.cpp index a8f88ee6..463024b6 100644 --- a/tests/test_stream_empty.cpp +++ b/tests/test_stream_empty.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -23,37 +33,37 @@ int main (void) { setup_test_environment (); void *ctx = zmq_ctx_new (); assert (ctx); - + void *stream = zmq_socket (ctx, ZMQ_STREAM); assert (stream); void *dealer = zmq_socket (ctx, ZMQ_DEALER); assert (dealer); - + int rc = zmq_bind (stream, "tcp://127.0.0.1:5555"); assert (rc >= 0); rc = zmq_connect (dealer, "tcp://127.0.0.1:5555"); assert (rc >= 0); zmq_send (dealer, "", 0, 0); - + zmq_msg_t ident, empty; zmq_msg_init (&ident); rc = zmq_msg_recv (&ident, stream, 0); assert (rc >= 0); rc = zmq_msg_init_data (&empty, (void *) "", 0, NULL, NULL); assert (rc >= 0); - + rc = zmq_msg_send (&ident, stream, ZMQ_SNDMORE); assert (rc >= 0); rc = zmq_msg_close (&ident); assert (rc >= 0); - + rc = zmq_msg_send (&empty, stream, 0); assert (rc >= 0); - + // This close used to fail with Bad Address rc = zmq_msg_close (&empty); assert (rc >= 0); - + close_zero_linger (dealer); close_zero_linger (stream); zmq_ctx_term (ctx); diff --git a/tests/test_stream_timeout.cpp b/tests/test_stream_timeout.cpp index dce88ea7..bc967288 100644 --- a/tests/test_stream_timeout.cpp +++ b/tests/test_stream_timeout.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -27,12 +37,12 @@ static int get_monitor_event (void *monitor, int *value, char **address) { // First frame in message contains event number and value - zmq_msg_t msg; + zmq_msg_t msg; zmq_msg_init (&msg); if (zmq_msg_recv (&msg, monitor, 0) == -1) return -1; // Interruped, presumably assert (zmq_msg_more (&msg)); - + uint8_t *data = (uint8_t *) zmq_msg_data (&msg); uint16_t event = *(uint16_t *) (data); if (value) @@ -43,7 +53,7 @@ get_monitor_event (void *monitor, int *value, char **address) if (zmq_msg_recv (&msg, monitor, 0) == -1) return -1; // Interruped, presumably assert (!zmq_msg_more (&msg)); - + if (address) { uint8_t *data = (uint8_t *) zmq_msg_data (&msg); size_t size = zmq_msg_size (&msg); diff --git a/tests/test_sub_forward.cpp b/tests/test_sub_forward.cpp index f480ba2f..f02328de 100644 --- a/tests/test_sub_forward.cpp +++ b/tests/test_sub_forward.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_sub_forward_tipc.cpp b/tests/test_sub_forward_tipc.cpp index d8cb47e3..de2f7fb1 100644 --- a/tests/test_sub_forward_tipc.cpp +++ b/tests/test_sub_forward_tipc.cpp @@ -3,17 +3,27 @@ Copyright (c) 2011 iMatix Corporation Copyright (c) 2010-2011 Other contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_system.cpp b/tests/test_system.cpp index c758d8d0..c8c4776c 100644 --- a/tests/test_system.cpp +++ b/tests/test_system.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -79,7 +89,7 @@ int main (void) printf ("I: On OS/X, run 'ulimit -n 1200' in bash"); #elif defined (ZMQ_HAVE_LINUX) printf ("I: On Linux, run 'ulimit -n 1200' in bash"); -#endif +#endif return -1; } } diff --git a/tests/test_term_endpoint.cpp b/tests/test_term_endpoint.cpp index 00812d42..4d08080c 100644 --- a/tests/test_term_endpoint.cpp +++ b/tests/test_term_endpoint.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_term_endpoint_tipc.cpp b/tests/test_term_endpoint_tipc.cpp index c0241550..dc3b6d3f 100644 --- a/tests/test_term_endpoint_tipc.cpp +++ b/tests/test_term_endpoint_tipc.cpp @@ -3,17 +3,27 @@ Copyright (c) 2011 iMatix Corporation Copyright (c) 2010-2011 Other contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . diff --git a/tests/test_timeo.cpp b/tests/test_timeo.cpp index 1ddaec38..0e49d622 100644 --- a/tests/test_timeo.cpp +++ b/tests/test_timeo.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -35,7 +45,7 @@ int main (void) rc = zmq_recv (frontend, buffer, 32, ZMQ_DONTWAIT); assert (rc == -1); assert (zmq_errno() == EAGAIN); - + // Check whether receive timeout is honored int timeout = 250; rc = zmq_setsockopt (frontend, ZMQ_RCVTIMEO, &timeout, sizeof (int)); @@ -64,10 +74,10 @@ int main (void) // Clean-up rc = zmq_close (backend); assert (rc == 0); - + rc = zmq_close (frontend); assert (rc == 0); - + rc = zmq_ctx_term (ctx); assert (rc == 0); diff --git a/tests/test_xpub_nodrop.cpp b/tests/test_xpub_nodrop.cpp index cc15e934..387a4bfa 100644 --- a/tests/test_xpub_nodrop.cpp +++ b/tests/test_xpub_nodrop.cpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -52,7 +62,7 @@ int main (void) int hwmlimit = hwm - 1; int send_count = 0; - + // Send an empty message for (int i = 0; i < hwmlimit; i++) { rc = zmq_send (pub, NULL, 0, 0); @@ -74,7 +84,7 @@ int main (void) while (rc == 0); assert (send_count == recv_count); - + // Now test real blocking behavior // Set a timeout, default is infinite int timeout = 0; @@ -84,7 +94,7 @@ int main (void) send_count = 0; recv_count = 0; hwmlimit = hwm; - + // Send an empty message until we get an error, which must be EAGAIN while (zmq_send (pub, "", 0, 0) == 0) send_count++; diff --git a/tests/testutil.hpp b/tests/testutil.hpp index c59578d1..d3955e1f 100644 --- a/tests/testutil.hpp +++ b/tests/testutil.hpp @@ -1,17 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -80,7 +90,7 @@ bounce (void *server, void *client) rc = zmq_getsockopt (server, ZMQ_RCVMORE, &rcvmore, &sz); assert (rc == 0); assert (!rcvmore); - + // Send two parts back to client rc = zmq_send (server, buffer, 32, ZMQ_SNDMORE); assert (rc == 32); @@ -223,7 +233,7 @@ void s_recv_seq (void *socket, ...) va_list ap; va_start (ap, socket); const char * data = va_arg (ap, const char *); - + while (true) { int rc = zmq_msg_recv (&msg, socket, 0); assert (rc != -1); diff --git a/tools/curve_keygen.cpp b/tools/curve_keygen.cpp index 5a84a05e..cf86b06c 100644 --- a/tools/curve_keygen.cpp +++ b/tools/curve_keygen.cpp @@ -1,24 +1,27 @@ /* - Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file + Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file - This file is part of 0MQ. + This file is part of libzmq, the ZeroMQ core engine in C++. - This tool generates a CurveZMQ keypair, as two printable strings you can - use in configuration files or source code. The encoding uses Z85, which - is a base-85 format that is described in 0MQ RFC 32, and which has an - implementation in the z85_codec.h source used by this tool. The keypair - always works with the secret key held by one party and the public key - distributed (securely!) to peers wishing to connect to it. - - 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 + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) 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. + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq 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 . @@ -47,7 +50,7 @@ int main (void) puts ("\n== CURVE PUBLIC KEY =="); puts (public_key); - + puts ("\n== CURVE SECRET KEY =="); puts (secret_key);