From b6cdd369e328ceca2c46758d92ad8ea6a1f59cd7 Mon Sep 17 00:00:00 2001 From: Pieter Hintjens Date: Sun, 8 Aug 2010 11:43:32 +0200 Subject: Added error checking (EFAULT) for null arguments * Fixed zmq_term, zmq_socket, zmq_close, zmq_setsockopt, * zmq_getsockopt, zmq_bind, zmq_connect, zmq_send, * zmq_recv, zmq_poll, zmq_device, zmq_stopwatch_stop * Updated Reference Manual for these methods --- doc/zmq_device.txt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'doc/zmq_device.txt') diff --git a/doc/zmq_device.txt b/doc/zmq_device.txt index 45d4052..d5d7a18 100644 --- a/doc/zmq_device.txt +++ b/doc/zmq_device.txt @@ -89,8 +89,17 @@ Refer to linkzmq:zmq_socket[3] for a description of these socket types. RETURN VALUE ------------ -The _zmq_device()_ function always returns `-1` and 'errno' set to *ETERM* (the -0MQ 'context' associated with either of the specified sockets was terminated). +The _zmq_device()_ function shall not return if successful. Otherwise it shall +return `-1` and set 'errno' to one of the values defined below. + + +ERRORS +------ +*ETERM*:: +The 0MQ 'context' associated with the specified 'frontend' or 'backend' was +terminated. +*EFAULT*:: +The provided 'frontend' or 'backend' was not valid (NULL). EXAMPLE -- cgit v1.2.3