+sub mynode
+{
+ my $self = shift;
+ my $noderef = shift;
+
+ if ($noderef) {
+ $self->{mynode} = $noderef->call;
+ } else {
+ $noderef = DXCluster->get_exact($self->{mynode});
+ unless ($noderef) {
+ my $mynode = $self->{mynode};
+ my $call = $self->{call};
+ dbg('err', "parent node $mynode has disappeared from $call" );
+ }
+ }
+ return $noderef;
+}
+
+sub dxchan
+{
+ my $self = shift;
+ my $dxchan = shift;
+
+ if ($dxchan) {
+ $self->{dxchan} = $dxchan->call;
+ } else {
+ $dxchan = DXChannel->get($self->{dxchan});
+ unless ($dxchan) {
+ my $dxcall = $self->{dxchan};
+ my $call = $self->{call};
+ dbg('err', "parent dxchan $dxcall has disappeared from $call" );
+ }
+ }
+ return $dxchan;
+}
+