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
2441ef11
Commit
2441ef11
authored
Feb 23, 2010
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zmq_errno helper function added
parent
2dd55605
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
zmq.h
bindings/c/zmq.h
+10
-0
zmq.cpp
src/zmq.cpp
+5
-0
No files found.
bindings/c/zmq.h
View file @
2441ef11
...
...
@@ -211,6 +211,16 @@ typedef struct
ZMQ_EXPORT
int
zmq_poll
(
zmq_pollitem_t
*
items
,
int
nitems
,
long
timeout
);
////////////////////////////////////////////////////////////////////////////////
// Experimental.
////////////////////////////////////////////////////////////////////////////////
// This function retrieves the errno as it is known to 0MQ library. The goal
// of this function is to make the code 100% portable, including where 0MQ
// compiled with certain CRT library (on Windows) is linked to an application
// compiled with different CRT library.
int
zmq_errno
();
////////////////////////////////////////////////////////////////////////////////
// Helper functions.
////////////////////////////////////////////////////////////////////////////////
...
...
src/zmq.cpp
View file @
2441ef11
...
...
@@ -615,6 +615,11 @@ int zmq_poll (zmq_pollitem_t *items_, int nitems_, long timeout_)
#endif
}
int
zmq_errno
()
{
return
errno
;
}
#if defined ZMQ_HAVE_WINDOWS
static
uint64_t
now
()
...
...
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