403Webshell
Server IP : 104.21.25.180  /  Your IP : 162.159.115.41
Web Server : Apache/2.4.37
System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64
User : ricodeal ( 1046)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/libexec/webmin/vendor_perl/Protocol/WebSocket/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/libexec/webmin/vendor_perl/Protocol/WebSocket/Stateful.pm
package Protocol::WebSocket::Stateful;

use strict;
use warnings;

sub new {
    my $class = shift;
    $class = ref $class if ref $class;

    my $self = {@_};
    bless $self, $class;

    return $self;
}

sub state { @_ > 1 ? $_[0]->{state} = $_[1] : $_[0]->{state} }

sub done     { shift->state('done') }
sub is_state { shift->state eq shift }
sub is_body  { shift->is_state('body') }
sub is_done  { shift->is_state('done') }

1;
__END__

=head1 NAME

Protocol::WebSocket::Stateful - Base class for all classes with states

=head1 DESCRIPTION

A base class for all classes with states.

=head1 ATTRIBUTES

=head2 C<state>

=head1 METHODS

=head2 C<new>

Create a new L<Protocol::WebSocket::Stateful> instance.

=head2 C<done>

=head2 C<is_state>

=head2 C<is_body>

=head2 C<is_done>

=cut

Youez - 2016 - github.com/yon3zu
LinuXploit