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
22 goto &main::login; # save some writing, this was the default
27 my ($conn, $msg) = @_;
28 $msg =~ s/([\%\x00-\x1f\x7f-\xff])/sprintf("%%%02X", ord($1))/eg;
29 push (@{$conn->{outqueue}}, $msg . "\n");
36 if ($conn && $conn->{msg} =~ /\cJ/) {
37 my @lines = $conn->{msg} =~ /([^\cM\cJ]*)\cM?\cJ/g;
38 if ($conn->{msg} =~ /\cJ$/) {
41 $conn->{msg} =~ s/([^\cM\cJ]*)\cM?\cJ//g;
45 s/\%([0-9A-F][0-9A-F])/chr(hex($1))/eg;
49 &{$conn->{rproc}}($conn, $_) if exists $conn->{rproc};