--- loncom/LondConnection.pm 2011/01/20 11:16:20 1.51 +++ loncom/LondConnection.pm 2011/01/24 11:02:32 1.52 @@ -1,7 +1,7 @@ # This module defines and implements a class that represents # a connection to a lond daemon. # -# $Id: LondConnection.pm,v 1.51 2011/01/20 11:16:20 foxr Exp $ +# $Id: LondConnection.pm,v 1.52 2011/01/24 11:02:32 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -189,7 +189,8 @@ sub new { LocalKeyFile => "", CipherKey => "", LondVersion => "Unknown", - Cipher => undef}; + Cipher => undef, + ClientData => undef}; bless($self, $class); unless ($self->{Socket} = IO::Socket::INET->new(PeerHost => $self->{Host}, PeerPort => $self->{Port}, @@ -1141,6 +1142,21 @@ sub PeerVersion { return $version; } +# +# Manipulate the client data field +# +sub SetClientData { + my ($self, $newData) = @_; + $self->{ClientData} = $newData; +} +# +# Get the current client data field. +# +sub GetClientData { + my $self = shift; + return $self->{ClientData}; +} + 1; =pod