Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
ba5fcc95
Commit
ba5fcc95
authored
Feb 14, 2014
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #892 from olafmandel/ZMQ_SOCKET_LIMIT
Rename ZMQ_MAX_SOCKETS_MAX to ZMQ_SOCKET_LIMIT
parents
1e9ea54b
e41c8cba
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
zmq_ctx_get.txt
doc/zmq_ctx_get.txt
+4
-4
zmq_ctx_set.txt
doc/zmq_ctx_set.txt
+1
-1
zmq.h
include/zmq.h
+1
-1
ctx.cpp
src/ctx.cpp
+1
-1
test_ctx_options.cpp
tests/test_ctx_options.cpp
+2
-2
No files found.
doc/zmq_ctx_get.txt
View file @
ba5fcc95
...
...
@@ -31,10 +31,10 @@ ZMQ_MAX_SOCKETS: Get maximum number of sockets
The 'ZMQ_MAX_SOCKETS' argument returns the maximum number of sockets
allowed for this context.
ZMQ_
MAX_SOCKETS_MAX
: Get largest configurable number of sockets
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
The 'ZMQ_
MAX_SOCKETS_MAX' argument returns the largest number of sockets
that
linkzmq:zmq_ctx_set[3] will accept.
ZMQ_
SOCKET_LIMIT
: Get largest configurable number of sockets
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The 'ZMQ_
SOCKET_LIMIT' argument returns the largest number of sockets that
linkzmq:zmq_ctx_set[3] will accept.
ZMQ_IPV6: Set IPv6 option
~~~~~~~~~~~~~~~~~~~~~~~~~
...
...
doc/zmq_ctx_set.txt
View file @
ba5fcc95
...
...
@@ -36,7 +36,7 @@ ZMQ_MAX_SOCKETS: Set maximum number of sockets
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The 'ZMQ_MAX_SOCKETS' argument sets the maximum number of sockets allowed
on the context. You can query the maximal allowed value with
linkzmq:zmq_ctx_get[3] using
'option_name' set to 'ZMQ_MAX_SOCKETS_MAX'
.
linkzmq:zmq_ctx_get[3] using
the 'ZMQ_SOCKET_LIMIT' option
.
[horizontal]
Default value:: 1024
...
...
include/zmq.h
View file @
ba5fcc95
...
...
@@ -178,7 +178,7 @@ ZMQ_EXPORT void zmq_version (int *major, int *minor, int *patch);
/* Context options */
#define ZMQ_IO_THREADS 1
#define ZMQ_MAX_SOCKETS 2
#define ZMQ_
MAX_SOCKETS_MAX
3
#define ZMQ_
SOCKET_LIMIT
3
/* Default for new contexts */
#define ZMQ_IO_THREADS_DFLT 1
...
...
src/ctx.cpp
View file @
ba5fcc95
...
...
@@ -205,7 +205,7 @@ int zmq::ctx_t::get (int option_)
if
(
option_
==
ZMQ_MAX_SOCKETS
)
rc
=
max_sockets
;
else
if
(
option_
==
ZMQ_
MAX_SOCKETS_MAX
)
if
(
option_
==
ZMQ_
SOCKET_LIMIT
)
rc
=
clipped_maxsocket
(
std
::
numeric_limits
<
int
>::
max
());
else
if
(
option_
==
ZMQ_IO_THREADS
)
...
...
tests/test_ctx_options.cpp
View file @
ba5fcc95
...
...
@@ -31,10 +31,10 @@ int main (void)
assert
(
zmq_ctx_get
(
ctx
,
ZMQ_MAX_SOCKETS
)
==
ZMQ_MAX_SOCKETS_DFLT
);
#if defined(ZMQ_USE_SELECT)
assert
(
zmq_ctx_get
(
ctx
,
ZMQ_
MAX_SOCKETS_MAX
)
==
ZMQ_MAX_SOCKETS_DFLT
);
assert
(
zmq_ctx_get
(
ctx
,
ZMQ_
SOCKET_LIMIT
)
==
ZMQ_MAX_SOCKETS_DFLT
);
#elif defined(ZMQ_USE_POLL) || defined(ZMQ_USE_EPOLL) \
|| defined(ZMQ_USE_DEVPOLL) || defined(ZMQ_USE_KQUEUE)
assert
(
zmq_ctx_get
(
ctx
,
ZMQ_
MAX_SOCKETS_MAX
)
assert
(
zmq_ctx_get
(
ctx
,
ZMQ_
SOCKET_LIMIT
)
==
std
::
numeric_limits
<
int
>::
max
());
#endif
assert
(
zmq_ctx_get
(
ctx
,
ZMQ_IO_THREADS
)
==
ZMQ_IO_THREADS_DFLT
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment