X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXChannel.pm;h=adf7c358ddfec793cf90cedf136da8e799355e0e;hb=4937d077fd03279aae2cbba6f1252ffdb04cc7a5;hp=6da3ecbe36d0be30a00ee2a47ce64bdac9f1e411;hpb=817ce3f71cc80d27ceaca7706800ce1ac7e94b51;p=spider.git diff --git a/perl/DXChannel.pm b/perl/DXChannel.pm index 6da3ecbe..adf7c358 100644 --- a/perl/DXChannel.pm +++ b/perl/DXChannel.pm @@ -178,6 +178,14 @@ sub alloc return $channels{$call} = $self; } +# rebless this channel as something else +sub rebless +{ + my $self = shift; + my $class = shift; + return $channels{$self->{call}} = bless $self, $class; +} + sub rec { my ($self, $msg) = @_;