[LON-CAPA-cvs] cvs: loncom(version_2_1_X) /lonnet/perl lonnet.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Wed, 28 Dec 2005 19:27:01 -0000
albertel Wed Dec 28 14:27:01 2005 EDT
Modified files: (Branch: version_2_1_X)
/loncom/lonnet/perl lonnet.pm
Log:
- backport 1.688
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.683.2.3 loncom/lonnet/perl/lonnet.pm:1.683.2.4
--- loncom/lonnet/perl/lonnet.pm:1.683.2.3 Thu Dec 22 15:57:49 2005
+++ loncom/lonnet/perl/lonnet.pm Wed Dec 28 14:27:00 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.683.2.3 2005/12/22 20:57:49 albertel Exp $
+# $Id: lonnet.pm,v 1.683.2.4 2005/12/28 19:27:00 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -3010,8 +3010,9 @@
# ------------------------------------------------------------ tmpget interface
sub tmpget {
- my ($token)=@_;
- my $rep=&reply("tmpget:$token",$perlvar{'lonHostID'});
+ my ($token,$server)=@_;
+ if (!defined($server)) { $server = $perlvar{'lonHostID'}; }
+ my $rep=&reply("tmpget:$token",$server);
my %returnhash;
foreach my $item (split(/\&/,$rep)) {
my ($key,$value)=split(/=/,$item);
@@ -3020,6 +3021,13 @@
return %returnhash;
}
+# ------------------------------------------------------------ tmpget interface
+sub tmpdel {
+ my ($token,$server)=@_;
+ if (!defined($server)) { $server = $perlvar{'lonHostID'}; }
+ return &reply("tmpdel:$token",$server);
+}
+
# ---------------------------------------------- Custom access rule evaluation
sub customaccess {