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