You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
509 B
Plaintext
22 lines
509 B
Plaintext
"127.0.0.1" => string tunnelHost;
|
|
9001 => int tunnelPort;
|
|
|
|
"127.0.0.1" => string destHost;
|
|
9002 => int destPort;
|
|
|
|
"tuntun" => string cmd;
|
|
" --listen " + tunnelHost + ":" + Std.itoa(tunnelPort) +=> cmd;
|
|
" --forward " + destHost + ":" + Std.itoa(destPort) +=> cmd;
|
|
<<< Std.system(cmd + " &") >>>;
|
|
|
|
fun void gen() {
|
|
OscSend xmit;
|
|
xmit.setHost(tunnelHost, tunnelPort);
|
|
|
|
while (true) {
|
|
xmit.startMsg("/example", "i");
|
|
Math.random2(0,127) => xmit.addInt;
|
|
100::ms => now;
|
|
}
|
|
}
|