Net::SSLeay::OO::Session - representation of SSL_SESSION* objects


Net-SSLeay-OO documentation Contained in the Net-SSLeay-OO distribution.

Index


Code Index:

NAME

Top

Net::SSLeay::OO::Session - representation of SSL_SESSION* objects

SYNOPSIS

Top

 my $session = $ssl->get_session;

 say "Your SSL session has been active for ".
     (time - $session->get_time)."s";

DESCRIPTION

Top

This is a wrapper for SSL_SESSION methods. defined methods are:

get_time()
set_time($epoch)

Get/set the time that this SSL session was established.

get_timeout()
set_timeout($epoch)

Set the timeout value for the session. See SSL_SESSION_set_timeout(3ssl).

AUTHOR

Top

Sam Vilain, samv@cpan.org

COPYRIGHT

Top

SEE ALSO

Top

Net::SSLeay::OO, Net::SSLeay::OO::SSL


Net-SSLeay-OO documentation Contained in the Net-SSLeay-OO distribution.

package Net::SSLeay::OO::Session;

use Moose;

has 'session'    => isa => 'Int',
	is       => "ro",
	required => 1,
	;

use Net::SSLeay::OO::Functions 'session';

sub DESTROY {
	my $self = shift;
	$self->free;
}

1;

__END__

# Local Variables:
# mode:cperl
# indent-tabs-mode: t
# cperl-continued-statement-offset: 8
# cperl-brace-offset: 0
# cperl-close-paren-offset: 0
# cperl-continued-brace-offset: 0
# cperl-continued-statement-offset: 8
# cperl-extra-newline-before-brace: nil
# cperl-indent-level: 8
# cperl-indent-parens-as-block: t
# cperl-indent-wrt-brace: nil
# cperl-label-offset: -8
# cperl-merge-trailing-else: t
# End:
# vim: filetype=perl:noexpandtab:ts=3:sw=3