+ connected() method for IS.pm

git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@328 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
This commit is contained in:
Heikki Hannikainen 2010-05-06 05:08:39 +00:00
parent ed74177269
commit fdd2900378
1 changed files with 16 additions and 0 deletions

View File

@ -184,6 +184,22 @@ sub connect($;%)
return 1;
}
=head1 connected()
Checks whether we're connected currently. Returns 1 for connected, 0 for not connected.
=cut
sub connected($)
{
my($self) = @_;
return 1 if $self->{'state'} eq 'connected';
return 0;
}
# -------------------------------------------------------------------------
# Get a line (blocking)