[LON-CAPA-cvs] cvs: loncom / LondConnection.pm
foxr
lon-capa-cvs@mail.lon-capa.org
Fri, 13 Jun 2003 02:38:30 -0000
foxr Thu Jun 12 22:38:30 2003 EDT
Modified files:
/loncom LondConnection.pm
Log:
Add function to shutdown socket.
Index: loncom/LondConnection.pm
diff -u loncom/LondConnection.pm:1.4 loncom/LondConnection.pm:1.5
--- loncom/LondConnection.pm:1.4 Tue Jun 10 22:04:35 2003
+++ loncom/LondConnection.pm Thu Jun 12 22:38:30 2003
@@ -1,7 +1,7 @@
# This module defines and implements a class that represents
# a connection to a lond daemon.
#
-# $Id: LondConnection.pm,v 1.4 2003/06/11 02:04:35 foxr Exp $
+# $Id: LondConnection.pm,v 1.5 2003/06/13 02:38:30 foxr Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -488,6 +488,20 @@
=pod
+=head2 Shutdown:
+
+Shuts down the socket.
+
+=cut
+
+sub Shutdown {
+ my $self = shift;
+ my $socket = $self->GetSocket();
+ $socket->shutdown(2);
+}
+
+=pod
+
=head2 GetState
selector for the object state.
@@ -512,6 +526,7 @@
return $self->{Socket};
}
+
=pod
=head2 WantReadable
@@ -837,6 +852,10 @@
Decrypts a block of text according to the cipher negotiated with the
peer (assumes the block was a reply.
+
+=item Shutdown:
+
+Shuts off the socket.
=head2 The following are selector member functions: