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
759b2e01
Commit
759b2e01
authored
Feb 04, 2012
by
skaller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix comments to conform to style guide.
parent
9dab56c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
8 deletions
+21
-8
zmq.cpp
src/zmq.cpp
+21
-8
No files found.
src/zmq.cpp
View file @
759b2e01
...
...
@@ -78,6 +78,8 @@
typedef
char
check_msg_t_size
[
sizeof
(
zmq
::
msg_t
)
==
sizeof
(
zmq_msg_t
)
?
1
:
-
1
];
// Version.
void
zmq_version
(
int
*
major_
,
int
*
minor_
,
int
*
patch_
)
{
*
major_
=
ZMQ_VERSION_MAJOR
;
...
...
@@ -85,11 +87,20 @@ void zmq_version (int *major_, int *minor_, int *patch_)
*
patch_
=
ZMQ_VERSION_PATCH
;
}
// Errors.
const
char
*
zmq_strerror
(
int
errnum_
)
{
return
zmq
::
errno_to_string
(
errnum_
);
}
int
zmq_errno
()
{
return
errno
;
}
// Contexts.
static
zmq
::
ctx_t
*
inner_init
(
int
io_threads_
)
{
if
(
io_threads_
<
0
)
{
...
...
@@ -180,6 +191,8 @@ int zmq_term (void *ctx_)
return
rc
;
}
// Sockets.
void
*
zmq_socket
(
void
*
ctx_
,
int
type_
)
{
if
(
!
ctx_
||
!
((
zmq
::
ctx_t
*
)
ctx_
)
->
check_tag
())
{
...
...
@@ -255,7 +268,8 @@ int zmq_connect (void *s_, const char *addr_)
return
result
;
}
// sending functions
// Sending functions.
static
int
inner_sendmsg
(
zmq
::
socket_base_t
*
s_
,
zmq_msg_t
*
msg_
,
int
flags_
)
{
int
sz
=
(
int
)
zmq_msg_size
(
msg_
);
...
...
@@ -303,7 +317,8 @@ int zmq_send (void *s_, const void *buf_, size_t len_, int flags_)
return
rc
;
}
// receiving functions
// Receiving functions.
static
int
inner_recvmsg
(
zmq
::
socket_base_t
*
s_
,
zmq_msg_t
*
msg_
,
int
flags_
)
{
int
rc
=
s_
->
recv
((
zmq
::
msg_t
*
)
msg_
,
flags_
);
...
...
@@ -359,7 +374,8 @@ int zmq_recv (void *s_, void *buf_, size_t len_, int flags_)
return
nbytes
;
}
// message manipulators
// Message manipulators.
int
zmq_msg_init
(
zmq_msg_t
*
msg_
)
{
return
((
zmq
::
msg_t
*
)
msg_
)
->
init
();
...
...
@@ -420,6 +436,8 @@ int zmq_getmsgopt (zmq_msg_t *msg_, int option_, void *optval_,
}
}
// Polling.
int
zmq_poll
(
zmq_pollitem_t
*
items_
,
int
nitems_
,
long
timeout_
)
{
#if defined ZMQ_POLL_BASED_ON_POLL
...
...
@@ -772,11 +790,6 @@ int zmq_poll (zmq_pollitem_t *items_, int nitems_, long timeout_)
#endif
}
int
zmq_errno
()
{
return
errno
;
}
#if defined ZMQ_POLL_BASED_ON_SELECT
#undef ZMQ_POLL_BASED_ON_SELECT
#endif
...
...
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