Merge pull request #32 from hintjens/master

Problem: source file headers are somewhat confusing about LGPLv3
This commit is contained in:
Pieter Hintjens 2015-06-02 23:41:02 +02:00
commit d5a66f7b7d
261 changed files with 5303 additions and 2732 deletions

238
AUTHORS
View File

@ -1,7 +1,7 @@
Corporate Contributors Corporate Contributors
====================== ======================
Copyright (c) 2007-2014 iMatix Corporation Copyright (c) 2007-2015 iMatix Corporation
Copyright (c) 2009-2011 250bpm s.r.o. Copyright (c) 2009-2011 250bpm s.r.o.
Copyright (c) 2010-2011 Miru Limited Copyright (c) 2010-2011 Miru Limited
Copyright (c) 2011 VMware, Inc. Copyright (c) 2011 VMware, Inc.
@ -12,127 +12,127 @@ Copyright (c) 2014 AppDynamics Inc.
Individual Contributors Individual Contributors
======================= =======================
AJ Lewis AJ Lewis
Alexej Lotz Alexej Lotz
Andrew Thompson Andrew Thompson
Asko Kauppi Asko Kauppi
Attila Mark Attila Mark
Barak Amar Barak Amar
Ben Gray Ben Gray
Bernd Prager Bernd Prager
Bernd Melchers Bernd Melchers
Bob Beaty Bob Beaty
Brandon Carpenter Brandon Carpenter
Brian Buchanan Brian Buchanan
Brett Cameron Brett Cameron
Burak Arslan Burak Arslan
Carl Clemens Carl Clemens
Chia-liang Kao Chia-liang Kao
Chris Busbey Chris Busbey
Chris Rempel Chris Rempel
Chris Wong Chris Wong
Christian Gudrian Christian Gudrian
Christian Kamm Christian Kamm
Chuck Remes Chuck Remes
Conrad D. Steenberg Conrad D. Steenberg
Dhammika Pathirana Dhammika Pathirana
Dhruva Krishnamurthy Dhruva Krishnamurthy
Dirk O. Kaar Dirk O. Kaar
Douglas Creager Douglas Creager
Drew Crawford Drew Crawford
Erich Heine Erich Heine
Erik Hugne Erik Hugne
Erik Rigtorp Erik Rigtorp
Fabien Ninoles Fabien Ninoles
Frank Denis Frank Denis
George Neill George Neill
Gerard Toonstra Gerard Toonstra
Ghislain Putois Ghislain Putois
Gonzalo Diethelm Gonzalo Diethelm
Guido Goldstein Guido Goldstein
Ian Barber Ian Barber
Ilja Golshtein Ilja Golshtein
Ivo Danihelka Ivo Danihelka
Jacob Rideout Jacob Rideout
Joe Thornber Joe Thornber
Jon Dyte Jon Dyte
Kamil Shakirov Kamil Shakirov
Ken Steele Ken Steele
Laurent Alebarde Laurent Alebarde
Marc Rossi Marc Rossi
Mark Barbisan Mark Barbisan
Martin Hurton Martin Hurton
Martin Lucina Martin Lucina
Martin Pales Martin Pales
Martin Sustrik Martin Sustrik
Matus Hamorsky Matus Hamorsky
Max Wolf Max Wolf
McClain Looney McClain Looney
Michael Compton Michael Compton
Mika Fischer Mika Fischer
Mikael Helbo Kjaer Mikael Helbo Kjaer
Mike Gatny Mike Gatny
Mikko Koppanen Mikko Koppanen
Min Ragan-Kelley Min Ragan-Kelley
Neale Ferguson Neale Ferguson
Nir Soffer Nir Soffer
Paul Betts Paul Betts
Paul Colomiets Paul Colomiets
Pavel Gushcha Pavel Gushcha
Pavol Malosek Pavol Malosek
Perry Kundert Perry Kundert
Peter Bourgon Peter Bourgon
Philip Kovacs Philip Kovacs
Pieter Hintjens Pieter Hintjens
Piotr Trojanek Piotr Trojanek
Richard Newton Richard Newton
Rik van der Heijden Rik van der Heijden
Robert G. Jakabosky Robert G. Jakabosky
Sebastian Otaegui Sebastian Otaegui
Stefan Radomski Stefan Radomski
Steven McCoy Steven McCoy
Stuart Webster Stuart Webster
Tamara Kustarova Tamara Kustarova
Taras Shpot Taras Shpot
Tero Marttila Tero Marttila
Terry Wilson Terry Wilson
Thijs Terlouw Thijs Terlouw
Thomas Rodgers Thomas Rodgers
Toralf Wittner Toralf Wittner
Tore Halvorsen Tore Halvorsen
Trevor Bernard Trevor Bernard
Vitaly Mayatskikh Vitaly Mayatskikh
Lourens Naudé Lourens Naudé
Hardeep Singh Hardeep Singh
André Caron André Caron
Tim Mossbarger Tim Mossbarger
Credits Credits
======= =======
Aamir Mohammad Aamir Mohammad
Adrian von Bidder Adrian von Bidder
Aleksey Yeschenko Aleksey Yeschenko
Alessio Spadaro Alessio Spadaro
Alexander Majorov Alexander Majorov
Anh Vu Anh Vu
Bernd Schumacher Bernd Schumacher
Brian Granger Brian Granger
Carsten Dinkelmann Carsten Dinkelmann
David Bahi David Bahi
Dirk Eddelbuettel Dirk Eddelbuettel
Evgueny Khartchenko Evgueny Khartchenko
Frank Vanden Berghen Frank Vanden Berghen
Ian Barber Ian Barber
John Apps John Apps
Markus Fischer Markus Fischer
Matt Muggeridge Matt Muggeridge
Michael Santy Michael Santy
Oleg Sevostyanov Oleg Sevostyanov
Paulo Henrique Silva Paulo Henrique Silva
Peter Busser Peter Busser
Peter Lemenkov Peter Lemenkov
Robert Zhang Robert Zhang
Toralf Wittner Toralf Wittner
Zed Shaw Zed Shaw

View File

@ -1,18 +1,27 @@
/* /*
Copyright (c) 2007-2011 iMatix Corporation Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file
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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -1,18 +1,27 @@
/* /*
Copyright (c) 2007-2011 iMatix Corporation Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file
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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@ -30,7 +40,7 @@ int main (void)
setup_test_environment (); setup_test_environment ();
void *ctx = zmq_ctx_new (); void *ctx = zmq_ctx_new ();
assert (ctx); assert (ctx);
// Create and bind pull socket to receive messages // Create and bind pull socket to receive messages
void *pull = zmq_socket (ctx, ZMQ_PULL); void *pull = zmq_socket (ctx, ZMQ_PULL);
assert (pull); assert (pull);
@ -54,11 +64,11 @@ int main (void)
int count; int count;
for (count = 0; count < NUM_MESSAGES; count++) for (count = 0; count < NUM_MESSAGES; count++)
zmq_send (push, "Hello", 5, 0); zmq_send (push, "Hello", 5, 0);
zmq_close (push); zmq_close (push);
zmq_ctx_destroy (child_ctx); zmq_ctx_destroy (child_ctx);
exit (0); exit (0);
} }
else { else {
// Parent process // Parent process
alarm(TIMEOUT_SECS); // Set upper limit on runtime alarm(TIMEOUT_SECS); // Set upper limit on runtime
@ -72,7 +82,7 @@ int main (void)
int child_status; int child_status;
while (true) { while (true) {
rc = waitpid (pid, &child_status, 0); rc = waitpid (pid, &child_status, 0);
if (rc == -1 && errno == EINTR) if (rc == -1 && errno == EINTR)
continue; continue;
assert (rc > 0); assert (rc > 0);
// Verify the status code of the child was zero // Verify the status code of the child was zero

View File

@ -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. 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_ZAP_DOMAIN 55
#define ZMQ_ROUTER_HANDOVER 56 #define ZMQ_ROUTER_HANDOVER 56
#define ZMQ_TOS 57 #define ZMQ_TOS 57
#define ZMQ_CONNECT_RID 61 #define ZMQ_CONNECT_RID 61
#define ZMQ_GSSAPI_SERVER 62 #define ZMQ_GSSAPI_SERVER 62
#define ZMQ_GSSAPI_PRINCIPAL 63 #define ZMQ_GSSAPI_PRINCIPAL 63
#define ZMQ_GSSAPI_SERVICE_PRINCIPAL 64 #define ZMQ_GSSAPI_SERVICE_PRINCIPAL 64

View File

@ -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. This file is part of 0MQ.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -3,17 +3,27 @@
Copyright (c) 2009-2011 250bpm s.r.o. Copyright (c) 2009-2011 250bpm s.r.o.
Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file 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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@ -148,6 +158,6 @@ namespace zmq
} args; } args;
}; };
} }
#endif #endif

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@ -76,7 +86,7 @@ namespace zmq
// (except zmq_close). // (except zmq_close).
// This function is non-blocking. // This function is non-blocking.
// terminate must still be called afterwards. // 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. // operations as well.
int shutdown(); int shutdown();

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

30
src/dist.cpp Executable file → Normal file
View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@ -66,7 +76,7 @@ void zmq::dist_t::match (pipe_t *pipe_)
// Mark the pipe as matching. // Mark the pipe as matching.
pipes.swap (pipes.index (pipe_), matching); pipes.swap (pipes.index (pipe_), matching);
matching++; matching++;
} }
void zmq::dist_t::unmatch () void zmq::dist_t::unmatch ()

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@ -60,7 +70,7 @@ namespace zmq
{ {
free (buf); free (buf);
} }
// The function returns a batch of binary data. The data // The function returns a batch of binary data. The data
// are filled to a supplied buffer. If no buffer is supplied (data_ // are filled to a supplied buffer. If no buffer is supplied (data_
// points to NULL) decoder object will provide buffer of its own. // points to NULL) decoder object will provide buffer of its own.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@ -94,108 +104,108 @@ const char *zmq::wsa_error_no (int no_)
// automatically (wsaError->HRESULT->string?). // automatically (wsaError->HRESULT->string?).
return return
(no_ == WSABASEERR) ? (no_ == WSABASEERR) ?
"No Error" : "No Error" :
(no_ == WSAEINTR) ? (no_ == WSAEINTR) ?
"Interrupted system call" : "Interrupted system call" :
(no_ == WSAEBADF) ? (no_ == WSAEBADF) ?
"Bad file number" : "Bad file number" :
(no_ == WSAEACCES) ? (no_ == WSAEACCES) ?
"Permission denied" : "Permission denied" :
(no_ == WSAEFAULT) ? (no_ == WSAEFAULT) ?
"Bad address" : "Bad address" :
(no_ == WSAEINVAL) ? (no_ == WSAEINVAL) ?
"Invalid argument" : "Invalid argument" :
(no_ == WSAEMFILE) ? (no_ == WSAEMFILE) ?
"Too many open files" : "Too many open files" :
(no_ == WSAEWOULDBLOCK) ? (no_ == WSAEWOULDBLOCK) ?
"Operation would block" : "Operation would block" :
(no_ == WSAEINPROGRESS) ? (no_ == WSAEINPROGRESS) ?
"Operation now in progress" : "Operation now in progress" :
(no_ == WSAEALREADY) ? (no_ == WSAEALREADY) ?
"Operation already in progress" : "Operation already in progress" :
(no_ == WSAENOTSOCK) ? (no_ == WSAENOTSOCK) ?
"Socket operation on non-socket" : "Socket operation on non-socket" :
(no_ == WSAEDESTADDRREQ) ? (no_ == WSAEDESTADDRREQ) ?
"Destination address required" : "Destination address required" :
(no_ == WSAEMSGSIZE) ? (no_ == WSAEMSGSIZE) ?
"Message too long" : "Message too long" :
(no_ == WSAEPROTOTYPE) ? (no_ == WSAEPROTOTYPE) ?
"Protocol wrong type for socket" : "Protocol wrong type for socket" :
(no_ == WSAENOPROTOOPT) ? (no_ == WSAENOPROTOOPT) ?
"Bad protocol option" : "Bad protocol option" :
(no_ == WSAEPROTONOSUPPORT) ? (no_ == WSAEPROTONOSUPPORT) ?
"Protocol not supported" : "Protocol not supported" :
(no_ == WSAESOCKTNOSUPPORT) ? (no_ == WSAESOCKTNOSUPPORT) ?
"Socket type not supported" : "Socket type not supported" :
(no_ == WSAEOPNOTSUPP) ? (no_ == WSAEOPNOTSUPP) ?
"Operation not supported on socket" : "Operation not supported on socket" :
(no_ == WSAEPFNOSUPPORT) ? (no_ == WSAEPFNOSUPPORT) ?
"Protocol family not supported" : "Protocol family not supported" :
(no_ == WSAEAFNOSUPPORT) ? (no_ == WSAEAFNOSUPPORT) ?
"Address family not supported by protocol family" : "Address family not supported by protocol family" :
(no_ == WSAEADDRINUSE) ? (no_ == WSAEADDRINUSE) ?
"Address already in use" : "Address already in use" :
(no_ == WSAEADDRNOTAVAIL) ? (no_ == WSAEADDRNOTAVAIL) ?
"Can't assign requested address" : "Can't assign requested address" :
(no_ == WSAENETDOWN) ? (no_ == WSAENETDOWN) ?
"Network is down" : "Network is down" :
(no_ == WSAENETUNREACH) ? (no_ == WSAENETUNREACH) ?
"Network is unreachable" : "Network is unreachable" :
(no_ == WSAENETRESET) ? (no_ == WSAENETRESET) ?
"Net dropped connection or reset" : "Net dropped connection or reset" :
(no_ == WSAECONNABORTED) ? (no_ == WSAECONNABORTED) ?
"Software caused connection abort" : "Software caused connection abort" :
(no_ == WSAECONNRESET) ? (no_ == WSAECONNRESET) ?
"Connection reset by peer" : "Connection reset by peer" :
(no_ == WSAENOBUFS) ? (no_ == WSAENOBUFS) ?
"No buffer space available" : "No buffer space available" :
(no_ == WSAEISCONN) ? (no_ == WSAEISCONN) ?
"Socket is already connected" : "Socket is already connected" :
(no_ == WSAENOTCONN) ? (no_ == WSAENOTCONN) ?
"Socket is not connected" : "Socket is not connected" :
(no_ == WSAESHUTDOWN) ? (no_ == WSAESHUTDOWN) ?
"Can't send after socket shutdown" : "Can't send after socket shutdown" :
(no_ == WSAETOOMANYREFS) ? (no_ == WSAETOOMANYREFS) ?
"Too many references can't splice" : "Too many references can't splice" :
(no_ == WSAETIMEDOUT) ? (no_ == WSAETIMEDOUT) ?
"Connection timed out" : "Connection timed out" :
(no_ == WSAECONNREFUSED) ? (no_ == WSAECONNREFUSED) ?
"Connection refused" : "Connection refused" :
(no_ == WSAELOOP) ? (no_ == WSAELOOP) ?
"Too many levels of symbolic links" : "Too many levels of symbolic links" :
(no_ == WSAENAMETOOLONG) ? (no_ == WSAENAMETOOLONG) ?
"File name too long" : "File name too long" :
(no_ == WSAEHOSTDOWN) ? (no_ == WSAEHOSTDOWN) ?
"Host is down" : "Host is down" :
(no_ == WSAEHOSTUNREACH) ? (no_ == WSAEHOSTUNREACH) ?
"No Route to Host" : "No Route to Host" :
(no_ == WSAENOTEMPTY) ? (no_ == WSAENOTEMPTY) ?
"Directory not empty" : "Directory not empty" :
(no_ == WSAEPROCLIM) ? (no_ == WSAEPROCLIM) ?
"Too many processes" : "Too many processes" :
(no_ == WSAEUSERS) ? (no_ == WSAEUSERS) ?
"Too many users" : "Too many users" :
(no_ == WSAEDQUOT) ? (no_ == WSAEDQUOT) ?
"Disc Quota Exceeded" : "Disc Quota Exceeded" :
(no_ == WSAESTALE) ? (no_ == WSAESTALE) ?
"Stale NFS file handle" : "Stale NFS file handle" :
(no_ == WSAEREMOTE) ? (no_ == WSAEREMOTE) ?
"Too many levels of remote in path" : "Too many levels of remote in path" :
(no_ == WSASYSNOTREADY) ? (no_ == WSASYSNOTREADY) ?
"Network SubSystem is unavailable" : "Network SubSystem is unavailable" :
(no_ == WSAVERNOTSUPPORTED) ? (no_ == WSAVERNOTSUPPORTED) ?
"WINSOCK DLL Version out of range" : "WINSOCK DLL Version out of range" :
(no_ == WSANOTINITIALISED) ? (no_ == WSANOTINITIALISED) ?
"Successful WSASTARTUP not yet performed" : "Successful WSASTARTUP not yet performed" :
(no_ == WSAHOST_NOT_FOUND) ? (no_ == WSAHOST_NOT_FOUND) ?
"Host not found" : "Host not found" :
(no_ == WSATRY_AGAIN) ? (no_ == WSATRY_AGAIN) ?
"Non-Authoritative Host not found" : "Non-Authoritative Host not found" :
(no_ == WSANO_RECOVERY) ? (no_ == WSANO_RECOVERY) ?
"Non-Recoverable errors: FORMERR REFUSED NOTIMP" : "Non-Recoverable errors: FORMERR REFUSED NOTIMP" :
(no_ == WSANO_DATA) ? (no_ == WSANO_DATA) ?
"Valid name no data record of requested" : "Valid name no data record of requested" :
"error not defined"; "error not defined";
} }
void zmq::win_error (char *buffer_, size_t buffer_size_) void zmq::win_error (char *buffer_, size_t buffer_size_)

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@ -111,7 +121,7 @@ namespace zmq
__FILE__, __LINE__);\ __FILE__, __LINE__);\
zmq::zmq_abort (#x);\ zmq::zmq_abort (#x);\
}\ }\
} while (false) } while (false)
// Provides convenient way to check for errno-style errors. // Provides convenient way to check for errno-style errors.
#define errno_assert(x) \ #define errno_assert(x) \

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef __ZMQ_I_POLL_EVENTS_HPP_INCLUDED__ #ifndef __ZMQ_I_POLL_EVENTS_HPP_INCLUDED__
#define __ZMQ_I_POLL_EVENTS_HPP_INCLUDED__ #define __ZMQ_I_POLL_EVENTS_HPP_INCLUDED__
namespace zmq namespace zmq
{ {
// Virtual interface to be exposed by object that want to be notified // Virtual interface to be exposed by object that want to be notified
// about events on file descriptors. // about events on file descriptors.
struct i_poll_events struct i_poll_events
{ {
virtual ~i_poll_events () {} virtual ~i_poll_events () {}
// Called by I/O thread when file descriptor is ready for reading. // Called by I/O thread when file descriptor is ready for reading.
virtual void in_event () = 0; virtual void in_event () = 0;
// Called by I/O thread when file descriptor is ready for writing. // Called by I/O thread when file descriptor is ready for writing.
virtual void out_event () = 0; virtual void out_event () = 0;
// Called when timer expires. // Called when timer expires.
virtual void timer_event (int id_) = 0; virtual void timer_event (int id_) = 0;
}; };
} }
#endif #endif

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@ -177,14 +187,14 @@ int zmq::ipc_connecter_t::get_new_reconnect_ivl ()
// Only change the current reconnect interval if the maximum reconnect // Only change the current reconnect interval if the maximum reconnect
// interval was set and if it's larger than the reconnect interval. // 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) { options.reconnect_ivl_max > options.reconnect_ivl) {
// Calculate the next interval // Calculate the next interval
current_reconnect_ivl = current_reconnect_ivl * 2; current_reconnect_ivl = current_reconnect_ivl * 2;
if(current_reconnect_ivl >= options.reconnect_ivl_max) { if(current_reconnect_ivl >= options.reconnect_ivl_max) {
current_reconnect_ivl = options.reconnect_ivl_max; current_reconnect_ivl = options.reconnect_ivl_max;
} }
} }
return this_interval; return this_interval;
} }
@ -209,7 +219,7 @@ int zmq::ipc_connecter_t::open ()
// Connect was successfull immediately. // Connect was successfull immediately.
if (rc == 0) if (rc == 0)
return 0; return 0;
// Translate other error codes indicating asynchronous connect has been // Translate other error codes indicating asynchronous connect has been
// launched to a uniform EINPROGRESS. // launched to a uniform EINPROGRESS.
if (rc == -1 && errno == EINTR) { if (rc == -1 && errno == EINTR) {

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@ -100,7 +110,7 @@ void zmq::ipc_listener_t::in_event ()
io_thread_t *io_thread = choose_io_thread (options.affinity); io_thread_t *io_thread = choose_io_thread (options.affinity);
zmq_assert (io_thread); 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, session_base_t *session = session_base_t::create (io_thread, false, socket,
options, NULL); options, NULL);
errno_assert (session); errno_assert (session);

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@ -51,7 +61,7 @@ zmq::mtrie_t::~mtrie_t ()
delete next.node; delete next.node;
next.node = 0; next.node = 0;
} }
else else
if (count > 1) { if (count > 1) {
for (unsigned short i = 0; i != count; ++i) for (unsigned short i = 0; i != count; ++i)
delete next.table [i]; delete next.table [i];
@ -88,7 +98,7 @@ bool zmq::mtrie_t::add_helper (unsigned char *prefix_, size_t size_,
count = 1; count = 1;
next.node = NULL; next.node = NULL;
} }
else else
if (count == 1) { if (count == 1) {
unsigned char oldc = min; unsigned char oldc = min;
mtrie_t *oldp = next.node; 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); min = std::min (min, c);
next.table [oldc - min] = oldp; next.table [oldc - min] = oldp;
} }
else else
if (min < c) { if (min < c) {
// The new character is above the current character range. // The new character is above the current character range.
unsigned short old_count = count; unsigned short old_count = count;
@ -242,7 +252,7 @@ void zmq::mtrie_t::rm_helper (pipe_t *pipe_, unsigned char **buff_,
count = 0; count = 0;
} }
// Compact the node table if possible // Compact the node table if possible
else else
if (live_nodes == 1) { if (live_nodes == 1) {
// If there's only one live node in the table we can // If there's only one live node in the table we can
// switch to using the more compact single-node // switch to using the more compact single-node

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@ -110,7 +120,7 @@ void zmq::object_t::process_command (command_t &cmd_)
case command_t::term_req: case command_t::term_req:
process_term_req (cmd_.args.term_req.object); process_term_req (cmd_.args.term_req.object);
break; break;
case command_t::term: case command_t::term:
process_term (cmd_.args.term.linger); process_term (cmd_.args.term.linger);
break; break;
@ -183,7 +193,7 @@ zmq::io_thread_t *zmq::object_t::choose_io_thread (uint64_t affinity_)
void zmq::object_t::send_stop () void zmq::object_t::send_stop ()
{ {
// 'stop' command goes always from administrative thread to // 'stop' command goes always from administrative thread to
// the current object. // the current object.
command_t cmd; command_t cmd;
cmd.destination = this; cmd.destination = this;
cmd.type = command_t::stop; cmd.type = command_t::stop;

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@ -172,7 +182,7 @@ void zmq::own_t::unregister_term_ack ()
term_acks--; term_acks--;
// This may be a last ack we are waiting for before termination... // 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 () void zmq::own_t::process_term_ack ()

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@ -34,7 +44,7 @@
#include "wire.hpp" #include "wire.hpp"
#include "err.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_) : const options_t &options_) :
io_object_t (parent_), io_object_t (parent_),
has_rx_timer (false), has_rx_timer (false),

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@ -45,7 +55,7 @@ namespace zmq
class pgm_receiver_t : public io_object_t, public i_engine class pgm_receiver_t : public io_object_t, public i_engine
{ {
public: public:
pgm_receiver_t (zmq::io_thread_t *parent_, const options_t &options_); pgm_receiver_t (zmq::io_thread_t *parent_, const options_t &options_);

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@ -34,7 +44,7 @@
#include "wire.hpp" #include "wire.hpp"
#include "stdint.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_) : const options_t &options_) :
io_object_t (parent_), io_object_t (parent_),
has_tx_timer (false), 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); handle = add_fd (downlink_socket_fd);
uplink_handle = add_fd (uplink_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); pending_notify_handle = add_fd (pending_notify_fd);
// Set POLLIN. We wont never want to stop polling for uplink = we never // 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 () 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. // try to read new data from the encoder.
if (write_size == 0) { 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 // offset in following steps. Note that by passing our buffer to
// the get data function we prevent it from returning its own buffer. // the get data function we prevent it from returning its own buffer.
unsigned char *bf = out_buffer + sizeof (uint16_t); unsigned char *bf = out_buffer + sizeof (uint16_t);

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@ -101,7 +111,7 @@ namespace zmq
// Output buffer from pgm_socket. // Output buffer from pgm_socket.
unsigned char *out_buffer; unsigned char *out_buffer;
// Output buffer size. // Output buffer size.
size_t out_buffer_size; size_t out_buffer_size;

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@ -72,7 +82,7 @@ int zmq::pgm_socket_t::init_address (const char *network_,
} }
*port_number = atoi (port_delim + 1); *port_number = atoi (port_delim + 1);
char network [256]; char network [256];
if (port_delim - network_ >= (int) sizeof (network) - 1) { if (port_delim - network_ >= (int) sizeof (network) - 1) {
errno = EINVAL; errno = EINVAL;
@ -392,13 +402,13 @@ zmq::pgm_socket_t::~pgm_socket_t ()
{ {
if (pgm_msgv) if (pgm_msgv)
free (pgm_msgv); free (pgm_msgv);
if (sock) if (sock)
pgm_close (sock, TRUE); pgm_close (sock, TRUE);
} }
// Get receiver fds. receive_fd_ is signaled for incoming packets, // Get receiver fds. receive_fd_ is signaled for incoming packets,
// waiting_pipe_fd_ is signaled for state driven events and data. // 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_) fd_t *waiting_pipe_fd_)
{ {
socklen_t socklen; 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_)); 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. // send_fd is for non-blocking send wire notifications.
// receive_fd_ is for incoming back-channel protocol packets. // receive_fd_ is for incoming back-channel protocol packets.
// rdata_notify_fd_ is raised for waiting repair transmissions. // rdata_notify_fd_ is raised for waiting repair transmissions.
// pending_notify_fd_ is for state driven events. // 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_) fd_t *rdata_notify_fd_, fd_t *pending_notify_fd_)
{ {
socklen_t socklen; 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 zmq::pgm_socket_t::send (unsigned char *data_, size_t data_len_)
{ {
size_t nbytes = 0; size_t nbytes = 0;
const int status = pgm_send (sock, data_, data_len_, &nbytes); const int status = pgm_send (sock, data_, data_len_, &nbytes);
// We have to write all data as one packet. // 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; 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. // and have to return 0 that another engine in this thread is scheduled.
if (nbytes_rec == nbytes_processed && nbytes_rec > 0) { 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_processed == 0);
zmq_assert (nbytes_rec == 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. // from the transport.
pgm_error_t *pgm_error = NULL; 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); 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. // returned.
nbytes_rec = 0; nbytes_rec = 0;
errno = EBUSY; 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. // Only one APDU per pgm_msgv_t structure is allowed.
zmq_assert (pgm_msgv [pgm_msgv_processed].msgv_len == 1); 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]; pgm_msgv [pgm_msgv_processed].msgv_skb [0];
// Take pointers from pgm_msgv_t structure. // 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); zmq_assert (status != PGM_IO_STATUS_ERROR);
// No data should be returned. // 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_RATE_LIMITED ||
status == PGM_IO_STATUS_WOULD_BLOCK)); status == PGM_IO_STATUS_WOULD_BLOCK));
@ -688,7 +698,7 @@ int zmq::pgm_socket_t::compute_sqns (int tpdu_)
{ {
// Convert rate into B/ms. // Convert rate into B/ms.
uint64_t rate = uint64_t (options.rate) / 8; uint64_t rate = uint64_t (options.rate) / 8;
// Compute the size of the buffer in bytes. // Compute the size of the buffer in bytes.
uint64_t size = uint64_t (options.recovery_ivl) * rate; uint64_t size = uint64_t (options.recovery_ivl) * rate;

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@ -57,11 +67,11 @@ namespace zmq
// Resolve PGM socket address. // Resolve PGM socket address.
static int init_address(const char *network_, struct pgm_addrinfo_t **addr, uint16_t *port_number); 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. // Get receiver fds and store them into user allocated memory.
void get_receiver_fds (fd_t *receive_fd_, fd_t *waiting_pipe_fd_); 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. // memory. Receive fd is used to process NAKs from peers.
void get_sender_fds (fd_t *send_fd_, fd_t *receive_fd_, void get_sender_fds (fd_t *send_fd_, fd_t *receive_fd_,
fd_t *rdata_notify_fd_, fd_t *pending_notify_fd_); fd_t *rdata_notify_fd_, fd_t *pending_notify_fd_);
@ -78,7 +88,7 @@ namespace zmq
long get_rx_timeout (); long get_rx_timeout ();
long get_tx_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. // process_upstream function is used to handle such a situation.
void process_upstream (); void process_upstream ();
@ -86,7 +96,7 @@ namespace zmq
// Compute size of the buffer based on rate and recovery interval. // Compute size of the buffer based on rate and recovery interval.
int compute_sqns (int tpdu_); int compute_sqns (int tpdu_);
// OpenPGM transport. // OpenPGM transport.
pgm_sock_t* sock; pgm_sock_t* sock;
@ -94,7 +104,7 @@ namespace zmq
// Associated socket options. // Associated socket options.
options_t options; options_t options;
// true when pgm_socket should create receiving side. // true when pgm_socket should create receiving side.
bool receiver; bool receiver;
@ -110,7 +120,7 @@ namespace zmq
// How many bytes were processed from last pgm socket read. // How many bytes were processed from last pgm socket read.
size_t nbytes_processed; size_t nbytes_processed;
// How many messages from pgm_msgv were already sent up. // How many messages from pgm_msgv were already sent up.
size_t pgm_msgv_processed; size_t pgm_msgv_processed;
}; };

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -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 libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the terms of the GNU Lesser General Public License (LGPL) as published
the Free Software Foundation; either version 3 of the License, or by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
0MQ is distributed in the hope that it will be useful, As a special exception, the Contributors give you permission to link
but WITHOUT ANY WARRANTY; without even the implied warranty of this library with independent modules to produce an executable,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the regardless of the license terms of these independent modules, and to
GNU Lesser General Public License for more details. copy and distribute the resulting executable under terms of your choice,
provided that you also meet, for each linked independent module, the
terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library.
If you modify this library, you must extend this exception to your
version of the library.
libzmq is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.

Some files were not shown because too many files have changed in this diff Show More