Fixed up all references to zmq_msg_size

This commit is contained in:
Pieter Hintjens
2012-02-16 12:04:25 -06:00
parent 02b81d42ce
commit 0efb49f12f
7 changed files with 23 additions and 14 deletions

View File

@@ -9,7 +9,7 @@ zmq_msg_size - retrieve message content size in bytes
SYNOPSIS SYNOPSIS
-------- --------
*size_t zmq_msg_size (zmq_msg_t '*msg');* *ssize_t zmq_msg_size (zmq_msg_t '*msg');*
DESCRIPTION DESCRIPTION
@@ -29,7 +29,15 @@ message content in bytes.
ERRORS ERRORS
------ ------
No errors are defined. The _zmq_msg_size()_ function shall return a positive integer (0 or higher)
if successful. Otherwise it shall return `-1` and set 'errno' to one of the
values defined below.
ERRORS
------
*EFAULT*::
The provided 'msg' was NULL.
SEE ALSO SEE ALSO
@@ -44,5 +52,5 @@ linkzmq:zmq[7]
AUTHORS AUTHORS
------- -------
This 0MQ manual page was written by Martin Sustrik <sustrik@250bpm.com> and This 0MQ manual page was written by Martin Sustrik <sustrik@250bpm.com>,
Martin Lucina <mato@kotelna.sk>. Martin Lucina <mato@kotelna.sk>, and Pieter Hintjens <ph@imatix.com>.

View File

@@ -29,6 +29,7 @@ extern "C" {
#include <errno.h> #include <errno.h>
#include <stddef.h> #include <stddef.h>
#include <stdio.h>
#if defined _WIN32 #if defined _WIN32
#include <winsock2.h> #include <winsock2.h>
#endif #endif

View File

@@ -1,6 +1,6 @@
/* /*
Copyright (c) 2007-2012 iMatix Corporation
Copyright (c) 2009-2011 250bpm s.r.o. Copyright (c) 2009-2011 250bpm s.r.o.
Copyright (c) 2007-2009 iMatix Corporation
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 0MQ.
@@ -35,7 +35,7 @@
#include <pthread.h> #include <pthread.h>
#endif #endif
static size_t message_size; static ssize_t message_size;
static int roundtrip_count; static int roundtrip_count;
#if defined ZMQ_HAVE_WINDOWS #if defined ZMQ_HAVE_WINDOWS

View File

@@ -1,6 +1,6 @@
/* /*
Copyright (c) 2007-2012 iMatix Corporation
Copyright (c) 2009-2011 250bpm s.r.o. Copyright (c) 2009-2011 250bpm s.r.o.
Copyright (c) 2007-2009 iMatix Corporation
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 0MQ.
@@ -36,7 +36,7 @@
#endif #endif
static int message_count; static int message_count;
static size_t message_size; static ssize_t message_size;
#if defined ZMQ_HAVE_WINDOWS #if defined ZMQ_HAVE_WINDOWS
static unsigned int __stdcall worker (void *ctx_) static unsigned int __stdcall worker (void *ctx_)

View File

@@ -1,6 +1,6 @@
/* /*
Copyright (c) 2007-2012 iMatix Corporation
Copyright (c) 2009-2011 250bpm s.r.o. Copyright (c) 2009-2011 250bpm s.r.o.
Copyright (c) 2007-2009 iMatix Corporation
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 0MQ.
@@ -28,7 +28,7 @@ int main (int argc, char *argv [])
{ {
const char *bind_to; const char *bind_to;
int roundtrip_count; int roundtrip_count;
size_t message_size; ssize_t message_size;
void *ctx; void *ctx;
void *s; void *s;
int rc; int rc;

View File

@@ -1,6 +1,6 @@
/* /*
Copyright (c) 2007-2012 iMatix Corporation
Copyright (c) 2009-2011 250bpm s.r.o. Copyright (c) 2009-2011 250bpm s.r.o.
Copyright (c) 2007-2009 iMatix Corporation
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 0MQ.
@@ -28,7 +28,7 @@ int main (int argc, char *argv [])
{ {
const char *bind_to; const char *bind_to;
int message_count; int message_count;
size_t message_size; ssize_t message_size;
void *ctx; void *ctx;
void *s; void *s;
int rc; int rc;

View File

@@ -1,6 +1,6 @@
/* /*
Copyright (c) 2007-2012 iMatix Corporation
Copyright (c) 2009-2011 250bpm s.r.o. Copyright (c) 2009-2011 250bpm s.r.o.
Copyright (c) 2007-2009 iMatix Corporation
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 0MQ.
@@ -29,7 +29,7 @@ int main (int argc, char *argv [])
{ {
const char *connect_to; const char *connect_to;
int roundtrip_count; int roundtrip_count;
size_t message_size; ssize_t message_size;
void *ctx; void *ctx;
void *s; void *s;
int rc; int rc;