~ubuntu-branches/ubuntu/saucy/zeromq3/saucy

« back to all changes in this revision

Viewing changes to doc/zmq_strerror.txt

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2012-06-04 21:21:09 UTC
  • Revision ID: package-import@ubuntu.com-20120604212109-b7b3m0rn21o8oo2q
Tags: upstream-3.1.0~beta+dfsg
ImportĀ upstreamĀ versionĀ 3.1.0~beta+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
zmq_strerror(3)
 
2
===============
 
3
 
 
4
 
 
5
NAME
 
6
----
 
7
zmq_strerror - get 0MQ error message string
 
8
 
 
9
 
 
10
SYNOPSIS
 
11
--------
 
12
*const char *zmq_strerror (int 'errnum');*
 
13
 
 
14
 
 
15
DESCRIPTION
 
16
-----------
 
17
The _zmq_strerror()_ function shall return a pointer to an error message string
 
18
corresponding to the error number specified by the 'errnum' argument. As 0MQ
 
19
defines additional error numbers over and above those defined by the operating
 
20
system, applications should use _zmq_strerror()_ in preference to the standard
 
21
_strerror()_ function.
 
22
 
 
23
 
 
24
RETURN VALUE
 
25
------------
 
26
The _zmq_strerror()_ function shall return a pointer to an error message
 
27
string.
 
28
 
 
29
 
 
30
ERRORS
 
31
------
 
32
No errors are defined.
 
33
 
 
34
 
 
35
EXAMPLE
 
36
-------
 
37
.Displaying an error message when a 0MQ context cannot be initialised
 
38
----
 
39
void *ctx = zmq_init (1, 1, 0);
 
40
if (!ctx) {
 
41
    printf ("Error occurred during zmq_init(): %s\n", zmq_strerror (errno));
 
42
    abort ();
 
43
}
 
44
----
 
45
 
 
46
 
 
47
SEE ALSO
 
48
--------
 
49
linkzmq:zmq[7]
 
50
 
 
51
 
 
52
AUTHORS
 
53
-------
 
54
The 0MQ documentation was written by Martin Sustrik <sustrik@250bpm.com> and
 
55
Martin Lucina <martin@lucina.net>.