Commit 0efb49f1 authored by Pieter Hintjens's avatar Pieter Hintjens

Fixed up all references to zmq_msg_size

parent 02b81d42
......@@ -9,7 +9,7 @@ zmq_msg_size - retrieve message content size in bytes
SYNOPSIS
--------
*size_t zmq_msg_size (zmq_msg_t '*msg');*
*ssize_t zmq_msg_size (zmq_msg_t '*msg');*
DESCRIPTION
......@@ -29,7 +29,15 @@ message content in bytes.
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
......@@ -44,5 +52,5 @@ linkzmq:zmq[7]
AUTHORS
-------
This 0MQ manual page was written by Martin Sustrik <sustrik@250bpm.com> and
Martin Lucina <mato@kotelna.sk>.
This 0MQ manual page was written by Martin Sustrik <sustrik@250bpm.com>,
Martin Lucina <mato@kotelna.sk>, and Pieter Hintjens <ph@imatix.com>.
......@@ -29,6 +29,7 @@ extern "C" {
#include <errno.h>
#include <stddef.h>
#include <stdio.h>
#if defined _WIN32
#include <winsock2.h>
#endif
......
/*
Copyright (c) 2007-2012 iMatix Corporation
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
This file is part of 0MQ.
......@@ -35,7 +35,7 @@
#include <pthread.h>
#endif
static size_t message_size;
static ssize_t message_size;
static int roundtrip_count;
#if defined ZMQ_HAVE_WINDOWS
......
/*
Copyright (c) 2007-2012 iMatix Corporation
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
This file is part of 0MQ.
......@@ -36,7 +36,7 @@
#endif
static int message_count;
static size_t message_size;
static ssize_t message_size;
#if defined ZMQ_HAVE_WINDOWS
static unsigned int __stdcall worker (void *ctx_)
......
/*
Copyright (c) 2007-2012 iMatix Corporation
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
This file is part of 0MQ.
......@@ -28,7 +28,7 @@ int main (int argc, char *argv [])
{
const char *bind_to;
int roundtrip_count;
size_t message_size;
ssize_t message_size;
void *ctx;
void *s;
int rc;
......
/*
Copyright (c) 2007-2012 iMatix Corporation
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
This file is part of 0MQ.
......@@ -28,7 +28,7 @@ int main (int argc, char *argv [])
{
const char *bind_to;
int message_count;
size_t message_size;
ssize_t message_size;
void *ctx;
void *s;
int rc;
......
/*
Copyright (c) 2007-2012 iMatix Corporation
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
This file is part of 0MQ.
......@@ -29,7 +29,7 @@ int main (int argc, char *argv [])
{
const char *connect_to;
int roundtrip_count;
size_t message_size;
ssize_t message_size;
void *ctx;
void *s;
int rc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment