import errno

EAGAIN = errno.EAGAIN

NOBLOCK = 1

EINVAL = 1

PAIR = 0
PUB = 1
SUB = 2
REQ = 3
REP = 4
XREQ = 5
XREP = 6
PULL = 7
PUSH = 8
XPUB = 9
XSUB = 10
ROUTER = 11
DEALER = 12
AFFINITY = 4
IDENTITY = 5
SUBSCRIBE = 6
UNSUBSCRIBE = 7
RATE = 8
RECOVERY_IVL = 9
SNDBUF = 11
RCVBUF = 12
RCVMORE = 13
FD = 14
EVENTS = 15
TYPE = 16
LINGER = 17
RECONNECT_IVL = 18
BACKLOG = 19
RECONNECT_IVL_MAX = 21
MAXMSGSIZE = 22
SNDHWM = 23
RCVHWM = 24
MULTICAST_HOPS = 25
RCVTIMEO = 27
SNDTIMEO = 28
RCVLABEL = 29

DONTWAIT = 1
SNDMORE = 2
SNDLABEL = 4

POLLIN = 1
POLLOUT = 3
POLLERR = 4

import errno

EAGAIN = errno.EAGAIN

NOBLOCK = 1

EINVAL = 1

PAIR = 0
PUB = 1
SUB = 2
REQ = 3
REP = 4
XREQ = 5
XREP = 6
PULL = 7
PUSH = 8
XPUB = 9
XSUB = 10
ROUTER = 11
DEALER = 12
AFFINITY = 4
IDENTITY = 5
SUBSCRIBE = 6
UNSUBSCRIBE = 7
RATE = 8
RECOVERY_IVL = 9
SNDBUF = 11
RCVBUF = 12
RCVMORE = 13
FD = 14
EVENTS = 15
TYPE = 16
LINGER = 17
RECONNECT_IVL = 18
BACKLOG = 19
RECONNECT_IVL_MAX = 21
MAXMSGSIZE = 22
SNDHWM = 23
RCVHWM = 24
MULTICAST_HOPS = 25
RCVTIMEO = 27
SNDTIMEO = 28
RCVLABEL = 29

DONTWAIT = 1
SNDMORE = 2
SNDLABEL = 4

POLLIN = 1
POLLOUT = 2
POLLERR = 4

fix constant - POLLOUT = 2 not 3