[zeromq-dev] [PATCH] vtcp transport
Martin Sustrik
sustrik at 250bpm.com
Thu Aug 4 13:27:28 CEST 2011
Hi all,
The patches for vtcp transport (multiplexing multiple connections
through a single TCP port) have been merged to master.
This functionality is considered in alpha stage at the moment.
Usage
-----
1. Get vtcp project here:
https://github.com/sustrik/vtcp
2. Build and install it:
./autogen.sh
./configure
make
sudo make install
3. Get 0MQ from github libzmq repo
4. Build it with --with-vtcp option:
./autogen.sh
./configure --with-vtcp
make
sudo make install
5. Run the vtcp deamon
vtcpd
6. Test it using 0MQ perf tests:
local_lat vtcp://*:5555 1 1
remote_lat vtcp://127.0.0.1:5555 1 1
Please note that vtcp only allows binding to *all* the network
interfaces (*). Trying to bind to a specific interface will produce error.
Also note that 5555 in the above examples is a subport, not a port -- in
this case the default port number 9220 is used. To use a different port
for multiplexing you have to run vtcpd with the desired port number as a
parameter and adjust the connection strings to use both port and subport
number, e.g.:
local_lat vtcp://*:9220.5555 1 1
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Experimental-VTCP-listener-added.patch
Type: text/x-patch
Size: 14213 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110804/a08fc936/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Code-cleanup.patch
Type: text/x-patch
Size: 2844 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110804/a08fc936/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-First-version-of-vtcp_connecter-added.patch
Type: text/x-patch
Size: 13872 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110804/a08fc936/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-vtcp_connecter-fixed.patch
Type: text/x-patch
Size: 2994 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110804/a08fc936/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Setting-TCP-socket-options-moved-to-tcp_engine_t.patch
Type: text/x-patch
Size: 13124 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110804/a08fc936/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Precise-reconnect-interval-randomised.patch
Type: text/x-patch
Size: 2507 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110804/a08fc936/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-Implementations-of-TCP-and-IPC-transports-separated.patch
Type: text/x-patch
Size: 36489 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110804/a08fc936/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-Dead-code-removed-from-TCP-and-IPC-transports.patch
Type: text/x-patch
Size: 16187 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110804/a08fc936/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-Tuning-of-TCP-sockets-is-done-at-a-single-place.patch
Type: text/x-patch
Size: 6270 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110804/a08fc936/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-Different-listener-implementations-simplified.patch
Type: text/x-patch
Size: 10464 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110804/a08fc936/attachment-0009.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-Different-connecters-simplified.patch
Type: text/x-patch
Size: 18527 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110804/a08fc936/attachment-0010.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012-MSVC-build-brought-up-to-date.patch
Type: text/x-patch
Size: 4531 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110804/a08fc936/attachment-0011.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0013-vtcp-connection-string-simplified.patch
Type: text/x-patch
Size: 3017 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110804/a08fc936/attachment-0012.bin>
More information about the zeromq-dev
mailing list