Refactoring CMSG to store entire cmsg length rather than just data length (for POSIX compliance) * Now, hdrs field of nn_msg struct is populated in nn_sendmsg()

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
First version of tcpmuxd added

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
nn_tcpmuxd() function added

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

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
tcpmuxd rewritten as a single-threaded function

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
First version of tcpmux transport added

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Add timeouts to tcpmuxd so that slow peer can't block the muxer

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Connecting side of tcpmux transport implemented

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Bound side of tcpmux transport implemented

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
When sending fd to other process, close the old copy of the fd.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Fix termination of btcpmux state machine

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
man pages nn_tcpmux(7) and tcpmuxd(1) added

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
New man pages referenced from nanomsg(7)

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Make port argument of tcpmuxd mandatory

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Partial tcpmux support on Windows

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