~ubuntu-branches/ubuntu/wily/pyzmq/wily

« back to all changes in this revision

Viewing changes to zmq/utils/zmq_compat.h

  • Committer: Package Import Robot
  • Author(s): Julian Taylor, Julian Taylor, Jakub Wilk
  • Date: 2013-05-09 15:07:29 UTC
  • mfrom: (2.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20130509150729-1xf0eb5wrokflfm7
Tags: 2.2.0.1-2
[ Julian Taylor ]
* upload to unstable
* python-gevent-dbg is fixed, enable python2 dbg autopkgtests
* cython0.19-compat.patch: fix build with cython 0.19

[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#include "zmq.h"
18
18
 
19
19
#define _missing (PyErr_SetString(PyExc_NotImplementedError, \
20
 
                "Not available in current zeromq."), -1)
 
20
"Not available in current zeromq."), -1)
21
21
 
22
22
// new in 2.2.0
23
23
#ifndef ZMQ_RCVTIMEO
27
27
    #define ZMQ_SNDTIMEO (-1)
28
28
#endif
29
29
 
30
 
// new in 3.0.0
 
30
// new in 3.x
31
31
#ifndef EAFNOSUPPORT
32
32
    #define EAFNOSUPPORT (-1)
33
33
#endif
50
50
#ifndef ZMQ_DONTWAIT
51
51
    #define ZMQ_DONTWAIT (-1)
52
52
#endif
53
 
#ifndef ZMQ_RCVLABEL
54
 
    #define ZMQ_RCVLABEL (-1)
55
 
#endif
56
 
#ifndef ZMQ_SNDLABEL
57
 
    #define ZMQ_SNDLABEL (-1)
58
 
#endif
59
53
#ifndef ZMQ_IPV4ONLY
60
54
    #define ZMQ_IPV4ONLY (-1)
61
55
#endif
62
56
#ifndef ZMQ_LAST_ENDPOINT
63
57
    #define ZMQ_LAST_ENDPOINT (-1)
64
58
#endif
65
 
#ifndef ZMQ_FAIL_UNROUTABLE
66
 
    #define ZMQ_FAIL_UNROUTABLE (-1)
 
59
 
 
60
#ifndef ZMQ_ROUTER_BEHAVIOR
 
61
    #define ZMQ_ROUTER_BEHAVIOR (-1)
 
62
#endif
 
63
#ifndef ZMQ_TCP_KEEPALIVE
 
64
    #define ZMQ_TCP_KEEPALIVE (-1)
 
65
#endif
 
66
#ifndef ZMQ_TCP_KEEPALIVE_CNT
 
67
    #define ZMQ_TCP_KEEPALIVE_CNT (-1)
 
68
#endif
 
69
#ifndef ZMQ_TCP_KEEPALIVE_IDLE
 
70
    #define ZMQ_TCP_KEEPALIVE_IDLE (-1)
 
71
#endif
 
72
#ifndef ZMQ_TCP_KEEPALIVE_INTVL
 
73
    #define ZMQ_TCP_KEEPALIVE_INTVL (-1)
 
74
#endif
 
75
#ifndef ZMQ_TCP_ACCEPT_FILTER
 
76
    #define ZMQ_TCP_ACCEPT_FILTER (-1)
 
77
#endif
 
78
#ifndef ZMQ_DELAY_ATTACH_ON_CONNECT
 
79
    #define ZMQ_DELAY_ATTACH_ON_CONNECT (-1)
 
80
#endif
 
81
 
 
82
// Message options (3.x)
 
83
 
 
84
#ifndef ZMQ_MORE
 
85
    #define ZMQ_MORE (-1)
 
86
#endif
 
87
 
 
88
// Event Monitoring
 
89
#ifndef ZMQ_EVENT_CONNECTED
 
90
    #define ZMQ_EVENT_CONNECTED (-1)
 
91
#endif
 
92
#ifndef ZMQ_EVENT_CONNECT_DELAYED
 
93
    #define ZMQ_EVENT_CONNECT_DELAYED (-1)
 
94
#endif
 
95
#ifndef ZMQ_EVENT_CONNECT_RETRIED
 
96
    #define ZMQ_EVENT_CONNECT_RETRIED (-1)
 
97
#endif
 
98
#ifndef ZMQ_EVENT_LISTENING
 
99
    #define ZMQ_EVENT_LISTENING (-1)
 
100
#endif
 
101
#ifndef ZMQ_EVENT_BIND_FAILED
 
102
    #define ZMQ_EVENT_BIND_FAILED (-1)
 
103
#endif
 
104
#ifndef ZMQ_EVENT_ACCEPTED
 
105
    #define ZMQ_EVENT_ACCEPTED (-1)
 
106
#endif
 
107
#ifndef ZMQ_EVENT_ACCEPT_FAILED
 
108
    #define ZMQ_EVENT_ACCEPT_FAILED (-1)
 
109
#endif
 
110
#ifndef ZMQ_EVENT_CLOSED
 
111
    #define ZMQ_EVENT_CLOSED (-1)
 
112
#endif
 
113
#ifndef ZMQ_EVENT_CLOSE_FAILED
 
114
    #define ZMQ_EVENT_CLOSE_FAILED (-1)
 
115
#endif
 
116
#ifndef ZMQ_EVENT_DISCONNECTED
 
117
    #define ZMQ_EVENT_DISCONNECTED (-1)
67
118
#endif
68
119
 
69
120
 
81
132
    #define ZMQ_MSG_SHARED (-1)
82
133
#endif
83
134
 
84
 
#ifndef ZMQ_UPSTREAM
85
 
    #define ZMQ_UPSTREAM (-1)
86
 
#endif
87
 
#ifndef ZMQ_DOWNSTREAM
88
 
    #define ZMQ_DOWNSTREAM (-1)
89
 
#endif
90
 
 
91
135
#ifndef ZMQ_HWM
92
136
    #define ZMQ_HWM (-1)
93
137
#endif
117
161
#endif
118
162
 
119
163
 
120
 
// new in 4.0.0
121
 
#ifndef ECANTROUTE
122
 
    #define ECANTROUTE (-1)
123
 
#endif
124
 
 
125
 
#ifndef ZMQ_RCVCMD
126
 
    #define ZMQ_RCVCMD (-1)
127
 
#endif
128
 
#ifndef ZMQ_SNDCMD
129
 
    #define ZMQ_SNDCMD (-1)
130
 
#endif
131
 
 
132
 
// removed in 4.0.0
133
 
#ifndef ZMQ_XREQ
134
 
    #define ZMQ_XREQ (-1)
135
 
#endif
136
 
#ifndef ZMQ_XREP
137
 
    #define ZMQ_XREP (-1)
138
 
#endif
139
 
#ifndef ZMQ_DEALER
140
 
    #define ZMQ_DEALER (-1)
141
 
#endif
142
 
 
143
 
#ifndef ZMQ_IDENTITY
144
 
    #define ZMQ_IDENTITY (-1)
145
 
#endif
146
 
 
147
164
// define fd type (from libzmq's fd.hpp)
148
165
#ifdef _WIN32
149
166
  #ifdef _MSC_VER && _MSC_VER <= 1400