1# test divert-to with tcp
2# create a divert-to in rule on the remote machine
3# client writes into TCP stream and reads from it on the local machine
4# server writes into TCP stream and reads from it on the remote machine
5
6use strict;
7use warnings;
8
9our %args = (
10    protocol => "tcp",
11    client => { func => \&write_read_stream },
12    server => { func => \&write_read_stream },
13    divert => "to",
14);
15