[LON-CAPA-cvs] cvs: loncom(version_1_1_1_s17) /lonnet/perl lonnet.pm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 27 Jan 2004 22:59:39 -0000


albertel		Tue Jan 27 17:59:39 2004 EDT

  Modified files:              (Branch: version_1_1_1_s17)
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - backporting 1.465 for use on s17
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.459.2.2 loncom/lonnet/perl/lonnet.pm:1.459.2.2.2.1
--- loncom/lonnet/perl/lonnet.pm:1.459.2.2	Mon Jan 26 17:00:07 2004
+++ loncom/lonnet/perl/lonnet.pm	Tue Jan 27 17:59:39 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.459.2.2 2004/01/26 22:00:07 albertel Exp $
+# $Id: lonnet.pm,v 1.459.2.2.2.1 2004/01/27 22:59:39 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4453,6 +4453,31 @@
     }
 }
 
+
+sub current_machine_domains {
+    my $hostname=$hostname{$perlvar{'lonHostID'}};
+    my @domains;
+    while( my($id, $name) = each(%hostname)) {
+	&logthis("-$id-$name-$hostname-");
+	if ($hostname eq $name) {
+	    push(@domains,$hostdom{$id});
+	}
+    }
+    return @domains;
+}
+
+sub current_machine_ids {
+    my $hostname=$hostname{$perlvar{'lonHostID'}};
+    my @ids;
+    while( my($id, $name) = each(%hostname)) {
+	&logthis("-$id-$name-$hostname-");
+	if ($hostname eq $name) {
+	    push(@ids,$id);
+	}
+    }
+    return @ids;
+}
+  
 # ------------------------------------------------------------- Declutters URLs
 
 sub declutter {