From 5ba1cb20fe6f6699cef1cc726718e760cd4c9af1 Mon Sep 17 00:00:00 2001 From: Martin Lucina Date: Mon, 23 Jan 2012 08:53:25 +0100 Subject: Imported Upstream version 2.0.9.dfsg --- doc/zmq_getsockopt.html | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) (limited to 'doc/zmq_getsockopt.html') diff --git a/doc/zmq_getsockopt.html b/doc/zmq_getsockopt.html index 1c4dda1..9b45f1c 100644 --- a/doc/zmq_getsockopt.html +++ b/doc/zmq_getsockopt.html @@ -591,7 +591,7 @@ specified by the option_name argument for the ØMQ socket pointed to by socket argument, and store it in the buffer pointed to by the option_value argument. The option_len argument is the size in bytes of the buffer pointed to by option_value; upon successful completion zmq_getsockopt() shall -modify the option_value argument to indicate the actual size of the option +modify the option_len argument to indicate the actual size of the option value stored in the buffer.

The following options can be retrieved with the zmq_getsockopt() function:

ZMQ_RCVMORE: More message parts to follow

@@ -667,7 +667,7 @@ Option value type

-int64_t +uint64_t

@@ -777,7 +777,7 @@ Option value type

-int64_t +uint64_t

@@ -884,7 +884,7 @@ Option value type

-uint64_t +int64_t

@@ -935,7 +935,7 @@ Option value type

-uint64_t +int64_t

@@ -989,7 +989,7 @@ Option value type

-uint64_t +int64_t

@@ -1157,6 +1157,14 @@ option value. The ØMQ context associated with the specified socket was terminated.

+
+EFAULT +
+
+

+The provided socket was not valid (NULL). +

+

EXAMPLE

@@ -1166,7 +1174,8 @@ The ØMQ context associated with the specified socket was term
/* Retrieve high water mark into hwm */
 int64_t hwm;
-rc = zmq_getsockopt (socket, ZMQ_HWM, &hwm, sizeof hwm);
+size_t hwm_size = sizeof (hwm);
+rc = zmq_getsockopt (socket, ZMQ_HWM, &hwm, &hwm_size);
 assert (rc == 0);
@@ -1185,7 +1194,8 @@ Martin Lucina <mato@kotelna.sk>.

<

-- cgit v1.2.3