MSVC build errors fixed

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Add USE_ALLOC_MONITOR and USE_LATENCY_MONITOR as options

This allows to build multiple versions of library from single source
without modifying source each time.

E.g:

    mkdir build_lat_mon
    cd build_lat_mon
    cmake .. -DUSE_LATENCY_MONITOR=ON

You can also see all the options from menu:

    ccmake ..

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Paul Colomiets added to the AUTHORS file

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Merge branch 'master' of github.com:250bpm/nanomsg
Unneeded USE prefix removed from cmake options

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Define EPROTO on the platforms where it is not defined

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
NN_RCVPRIO option temporarily disabled

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
First stab at ZeroMQ compatibility feature

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Implement zmq_setsockopt in ZeroMQ compatibility library

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
ZMQ compatibility ABI *fully* comaptible with ZeroMQ

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
zmq_compat test added, couple of bugs in ZMQ compatibility fixed

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
zmq_setsockopt tested in zmq_compat unit test

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
max number of NN sockets is a compile-time value

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
sp_socket() now executes in O(1) time wrt max possible number of sockets

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Allocate socket table and unused socket table in one go

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
zmq_compat test tests native NN socket and option constants

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Fix installation of zmq.h and zmq_utils.h

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
nn_zmq(7) man page added

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
nn_zmq(7) man page specifies exact ABI version

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Warning about parallel installation of 0mq and 0mq compatibility lib added

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>