2 # This class is the internal subclass that deals with the internal port 27754
3 # communications for Msg.pm
7 # Copyright (c) 2001 - Dirk Koopman G1TLH
21 my ($conn, $msg) = @_;
22 $msg =~ s/([\%\x00-\x1f\x7f-\xff])/sprintf("%%%02X", ord($1))/eg;
23 push (@{$conn->{outqueue}}, $msg . "\n");
31 while ($msg = shift @{$conn->{inqueue}}){
32 $msg =~ s/\%([2-9A-F][0-9A-F])/chr(hex($1))/eg;
33 $msg =~ s/[\x00-\x08\x0a-\x1f\x80-\x9f]/./g; # immutable CSI sequence + control characters
34 &{$conn->{rproc}}($conn, $msg, $!);