Fix warning for adding integer to string.

Clang warns on this construct and suggests using array indexing
to silence the warning.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
On Windows errno codes are translated to err strings by nanomsg rather than strerror

It seems that strerror() on Windows isn't able to convert
all error code (EISCONN in particular).

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
All error codes are reported via nn_symbol() unconditionally

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Handle EISCONN error produced by nn_excl decently

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
tests for rejected connections added

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Two small bugs fixed in nanocat

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
ETSN protocol spec removed (can be replaced by TCPMUX in case of need).

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Initial implementation of monitoring via ESTP

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Fix build on Windows

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Fix couple of MSVC warnings

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Merge branch 'master' of github.com:250bpm/nanomsg
More MSVC warnings fixed.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Warnings fixed in nanocat

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Merge branch 'master' of github.com:nanomsg/nanomsg
Missing attr.h from previous patch added.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This removes the dirty hack of unlocking the global context while in nn_global_init.

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

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Windows version of nn_poll implemented.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Man page for nn_poll added.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Fix assertion in statistics for zero-length message

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