view release on metacpan or search on metacpan
    Second version;
      - add URI
0.022 Thu Okt 13 2016
      - bug fix in test script
      - updated pod documentation
0.03  Fri Okt 14 2016
    Third version;
     - bug fix
     - updated pod documentation
0.031 Mon Okt 24 2016
     - updated pod documentation
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
0.12 - 11.01.2015 17:56
    Fixed dispatcher, added pool_from_dispatcher method.
0.11 - 31.12.2014 00:41
    Added dispatcher method, added test, updated pod.
0.10 - 31.12.2014 00:01
    Internal release.
0.09 - 27.12.2014 17:13
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
    my $cv = AE::cv;
    $kv->put(foo => "bar", cb => sub {
        my ($r, $meta) = @_;
        ok $r, "key was updated";
        $kv->get("foo", cb => sub {
            my ($r, $meta) = @_;
            is $r->value, "bar", "returned KV has correct value";
            isa_ok $meta, 'Consul::Meta', "got server meta object";
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
eg/replicate.pl view on Meta::CPAN
        my $change = shift;
        say "document "
            . $change->{id}
            . " with sequence "
            . $change->{seq}
            . " have been updated";
        $couchdb_orig->open_doc( $change->{id} )->cb(
            sub {
                my $data = $_[0]->recv;
                $couchdb_dest->save_doc($data);
            }
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
eg/simple_daap_server.pl view on Meta::CPAN
        };
        my $track = AnyEvent::DAAP::Server::Track::File::MP3->new(file => $file);
        $daap->add_track($track);
        $playlist->add_track($track);
    }
    $daap->database_updated;
    undef $w;
};
$daap->setup;
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/Discord/Client.pm view on Meta::CPAN
    print "created channel $d->{id} ($d->{name}) of guild $d->{guild_id} ($self->{guilds}{$d->{guild_id}}{name})\n";
  },
  CHANNEL_UPDATE => sub {
    my ($self, $d) = @_;
    %{$self->{channels}{$d->{id}}} = %$d;
    print "updated channel $d->{id} ($d->{name}) of guild $d->{guild_id} ($self->{guilds}{$d->{guild_id}}{name})\n";
  },
  CHANNEL_DELETE => sub {
    my ($self, $d) = @_;
    @{$self->{guilds}{$d->{guild_id}}{channels}} = grep {$_->{id} != $d->{id}} @{$self->{guilds}{$d->{guild_id}}{channels}} if $d->{guild_id};
    delete $self->{channels}{$d->{id}};
    
  
  
  lib/AnyEvent/Discord/Client.pm view on Meta::CPAN
    print "created role $d->{role}{id} ($d->{role}{name}) of guild $d->{guild_id} ($self->{guilds}{$d->{guild_id}}{name})\n";
  },
  GUILD_ROLE_UPDATE => sub {
    my ($self, $d) = @_;
    %{$self->{roles}{$d->{role}{id}}} = %{$d->{role}};
    print "updated role $d->{role}{id} ($d->{role}{name}) of guild $d->{guild_id} ($self->{guilds}{$d->{guild_id}}{name})\n";
  },
  GUILD_ROLE_DELETE => sub {
    my ($self, $d) = @_;
    @{$self->{guilds}{$d->{guild_id}}{roles}} = grep {$_->{role}{id} != $d->{role}{id}} @{$self->{guilds}{$d->{guild_id}}{roles}} if $d->{guild_id};
    delete $self->{roles}{$d->{role}{id}};
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
In addition, an event (basically a fake message) of type C<request_changed> is generated
on every change, which will be called as C<< $cb->($fcp, $kv, $type) >>, where C<$type>
is the type of the original message triggering the change,
To fill this cache with the global queue and keep it updated,
call C<watch_global> to subscribe to updates, followed by
C<list_persistent_requests_sync>.
   $fcp->watch_global_sync_; # do not wait
   $fcp->list_persistent_requests; # wait
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/Feed.pm view on Meta::CPAN
=item my $entry_ages = $feed_reader->entry_ages
This will set the age hash which will keep track of already seen entries.
The keys of the hash will be the calculated hashes of the entries and the
values will be a counter of how often they have NOT been seen anymore (kind of
an age counter). After each fetch this hash is updated and seen entries get
a value of 0.
=cut
sub entry_ages {
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
Passing this parameter enables (simplified) cookie-processing, loosely
based on the original netscape specification.
The C<$hash_ref> must be an (initially empty) hash reference which
will get updated automatically. It is possible to save the cookie jar
to persistent storage with something like JSON or Storable - see the
C<AnyEvent::HTTP::cookie_jar_expire> function if you wish to remove
expired or session-only cookies, and also for documentation on the format
of the cookie jar.
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/I3X/Workspace/OnDemand.pm view on Meta::CPAN
      my $event   = shift;
      $self->log_event('barconfig_update', $event);
      # This event consists of a single serialized map reporting on options
      # from the barconfig of the specified bar_id that were updated in i3.
      # This event is the same as a GET_BAR_CONFIG reply for the bar with the
      # given id.
      warn "barconfig_update is currently not supported", $/
        if %barconfig_update;
    }
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/IRC/Client.pm view on Meta::CPAN
=item channel_nickmode_update => $channel, $dest
This event is emitted when the (user) mode (eg. op status) of an occupant of
a channel changes. C<$dest> is the nickname on the C<$channel> who's mode was
updated.
=item channel_topic => $channel, $topic, $who
This is emitted when the topic for a channel is discovered. C<$channel>
is the channel for which C<$topic> is the current topic now.
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
t/03-tiehash.t view on Meta::CPAN
is scalar keys %cache, 2;
is_deeply [sort keys %cache], [qw(bar foo)];
ok scalar %cache;
# Overwrite bar
(tied %cache)->set(bar => "updated!", "3s");
is $cache{"bar"}, "updated!";
my $w1; $w1 = AE::timer 2, 0, sub{  # 2 seconds later
    is scalar keys %cache, 1;
    is_deeply [sort keys %cache], [qw(bar)];
    ok scalar %cache;
    
    ok !exists $cache{"foo"};
    
    ok exists $cache{"bar"};
    is $cache{"bar"}, "updated!";
    
    ok !exists $cache{"baz"};
};
my $w2; $w2 = AE::timer 4, 0, sub{  # 4 seconds later
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/JSONRPC.pm view on Meta::CPAN
shortcut of L<AnyEvent::JSONRPC::TCP::Client> and L<AnyEvent::JSONRPC::TCP::Server>.
One is C<jsonrpc_client> for Client, another is C<jsonrpc_server> for Server.
=head2 DIFFERENCES FROM THE "Lite" MODULE
This module is a fork of Daisuke Murase's L<AnyEvent::JSONRPC::Lite> updated
to use Yuval Kogman's JSON::RPC::Common for handling the JSONRPC messages.
This enables support for handling messages complying to all versions of the
JSONRPC standard.
The System Services/Service Description parts of version 1.1-wd and 1.1-alt is
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
  db_mon $group, $cb->(\%ports, $add, $change, $del) # new
C<grp_reg> is a no-brainer (just replace by C<db_reg>), but C<grp_get> is
no longer instant, because the local node might not have a copy of the
group. You can either modify your code to allow for a callback, or use
C<db_mon> to keep an updated copy of the group:
  my $local_group_copy;
  db_mon $group => sub { $local_group_copy = $_[0] };
  # now "keys %$local_group_copy" always returns the most up-to-date
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/Net/Curl/Queued/Multi.pm view on Meta::CPAN
## no critic (RequireArgUnpacking)
sub BUILDARGS { return $_[-1] }
# socket callback: will be called by curl any time events on some
# socket must be updated
sub _cb_socket {
    my ($self, undef, $socket, $poll) = @_;
    # Right now $socket belongs to that $easy, but it can be
    # shared with another easy handle if server supports persistent
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
example/ex.pl view on Meta::CPAN
    if ( $error ) {
      say "err $error->{error} with $error->{server_name} $error->{server_id}";
    }
    if ( $result ) {
      say "server_id=$result->[ 0 ] updated=$result->[ 1 ]";
    }
    $cv->send;
  },
);
    
  
  
  example/ex.pl view on Meta::CPAN
    if ( $error ) {
      say "err $error->{error} with $error->{server_name} $error->{server_id}";
    }
    if ( $result ) {
      say "server_id=$result->[ 0 ] updated=$result->[ 1 ]";
    }
    $cv->send;
  },
);
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
Revision history for AnyEvent::Porttracker
1.01 Thu Jun  2 03:27:29 CEST 2011
	- updated names.
1.0  Sat May 21 00:55:20 CEST 2011
	- add "req_sync" method, which might be easier for simple scripts.
        - updated the AnyEvent::Porttracker::protocol pod for porttracker 3.x.
0.1  Tue Nov 16 18:37:15 CET 2010
	- first release.
0.0  Sun Nov 14 23:31:43 CET 2010
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
  - Unit tests improved.
  - Minor internal changes.
  - Minor changes in POD.
1.346 Wed Jan 15 01:45:00 MSK 2014
  - Copyright updated.
1.345 Wed Jan 15 01:25:00 MSK 2014
  - Command keyword is converted to lowercase.
1.344 Wed Jan 15 00:45:00 MSK 2014
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/Riak.pm view on Meta::CPAN
=back
=head2 put
Put request - if options.return_body is set then the updated metadata/data for the key will be returned.
=over
=item bucket
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/RipeRedis/Cluster.pm view on Meta::CPAN
Not set by default.
=item refresh_interval => $fractional_seconds
Cluster state refresh interval. If set to zero, cluster state will be updated
only on MOVED redirect.
By default is 15 seconds.
=item handle_params => \%params
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
t/AnyEvent-HTTP-Spark.t view on Meta::CPAN
      my $result=$self->createRoom($room_args);
      sleep 1;
      ok($result,'Should have created the room') or die "$result";
      {
        my $result=$self->updateTeam($teamId,{name=>$ENV{TEST_TEAM}."Renamed"});
	ok($result,"Should have updated the test team wthout an error") or diag($result);
        sleep 1;
      }
      {
        my $result=$self->deleteTeam($teamId);
        ok($result,"Cleaning up team $ENV{TEST_TEAM}, ID: $teamId") or diag($result);
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/Superfeedr/Notification.pm view on Meta::CPAN
    my $feed = <<EOX;
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<id>$id</id>
<title>$title</title>
<updated>$now</updated>
<link href="$feed_uri" rel="self" />
EOX
    for my $node_entry ($notification->node_entries) {
        $feed .= $node_entry->as_string;
    }
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/WebService/Tracks/Context.pm view on Meta::CPAN
use warnings;
use parent 'AnyEvent::WebService::Tracks::Resource';
our $VERSION = '0.02';
__PACKAGE__->readonly(qw/created_at id updated_at/);
__PACKAGE__->accessor(qw/name position/);
sub resource_path {
    return 'contexts';
}
    
  
  
  lib/AnyEvent/WebService/Tracks/Context.pm view on Meta::CPAN
=head2 id
The ID of the context in Tracks.
=head2 updated_at
When the context was last updated.
=head1 WRITABLE ATTRIBUTES
=head2 name
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/XMPP/Ext/VCard.pm view on Meta::CPAN
                  if ($error) {
                     $self->event (retrieve_vcard_error => $error);
                  }
                  # the own vcard was already set by retrieve
                  # this will push out an updated presence
                  $self->_publish_avatar;
               });
            }
         }
      );
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
t/publish-subscribe.t view on Meta::CPAN
$pub->publish('bar: YES');
$pub->publish('qux: yes');
$pub->publish('gorch: yes');
$cv->recv;
# subscriptions updated and push_read works?
is_deeply $results, { foobar => [ map { "$_: yes" } qw/bar qux gorch/] },
    'subscriptions mirror $topics attribute';
done_testing;
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
  Change: 6c9ffdf0364e60aa1388fd968a19038e922d98aa
  Author: Naveed Massjouni <naveedm9@gmail.com>
  Date : 2013-05-20 03:23:37 +0000
    updated gateway interface 
  Change: 624a2d7503b0371478718c406821d21f8f85273f
  Author: Naveed Massjouni <naveedm9@gmail.com>
  Date : 2013-05-19 08:42:45 +0000
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
for the script execution only.
=item $Response->{IsClientConnected}
1 if web client is connected, 0 if not.  This value
starts set to 1, and will be updated whenever a
$Response->Flush() is called.  If BufferingOn is
set, by default $Response->Flush() will only be
called at the end of the HTML output.  
As of version 2.23 this value is updated correctly
before global.asa Script_OnStart is called, so 
global script termination may be correctly handled
during that event, which one might want to do 
with excessive user STOP/RELOADS when the web 
server is very busy.
    
  
  
  =item $Response->IsClientConnected()
API Extension.  1 for web client still connected, 0 if 
disconnected which might happen if the user hits the stop button.
The original API for this $Response->{IsClientConnected}
is only updated after a $Response->Flush is called,
so this method may be called for a refreshed status.
Note $Response->Flush calls $Response->IsClientConnected
to update $Response->{IsClientConnected} so to use this
you are going straight to the source!  But if you are doing
    
  
  
      %> <%= $row %> <%
    $Response->Flush;
  }
Then its more efficient to use the member instead of 
the method since $Response->Flush() has already updated
that value for you.
=item $Response->Redirect($url)
Sends the client a command to go to a different url $url.  
    
  
  
    Stas Bekman's mod_perl guide
  http://perl.apache.org/guide/
Written in late 1999 this article provides an early look at 
how to tune your Apache::ASP web site.  It has since been
updated to remain current with Apache::ASP v2.29+
  Apache::ASP Site Tuning
  http://www.apache-asp.org/articles/perlmonth3_tune.html
=head2 Tuning & Benchmarking
    
  
  
  
 + Incremented version number to actually match SVN branch tag
=item $VERSION = 2.61; $DATE="05/24/2008"
 - updated for more recent mod_perl 2 environment to trigger correct loading of modules
 + loads modules in a backwards compatible way for older versions of mod_perl 1.99_07 to 1.99_09
 + license changes from GPL to Perl Artistic License
    
  
  
  
 + added "use bytes" to Response object to calculate Content-Length
   correctly for UTF8 data, which should require therefore at least
   perl version 5.6 installed
 + updated to work with latest mod_perl 2.0 module naming convention,
   thanks to Randy Kobes for patch
 + examples now exclude usage of Apache::Filter & Apache::SSI under mod_perl 2.0
=item $VERSION = 2.57; $DATE="01/29/2004"
    
  
  
  
 - fixed $Server->Mail error_log output when failing to connect
   to SMTP server.
 + added tests to cover UniquePackages & NoCache configs since this
   config logic was updated
 + made deprecated warnings for use of certain $Response->Member
   calls more loudly write to error_log, so I can remove the AUTOLOAD
   for Response one day
    
  
  
   -Only remove outermost <SCRIPT> tags from global.asa
  for IIS/PerlScript compatibility.  Used to remove
  all <SCRIPT> tags, which hurt when some subs in globa.asa
  would be printing some JavaScript.
 +$Response->{IsClientConnected} now updated correctly 
  before global.asa Script_OnStart.  $Response->IsClientConnect()
  can be used for accurate accounting, while 
  $Response->{IsClientConnected} only gets updated
  after $Response->Flush().  Added test cases to response.t
 +$Server->HTMLEncode(\$data) API extension, now can take
  scalar ref, which can give a 5% improvement in benchmarks
  for data 100K in size.
    
  
  
    check for the module to load every time, if it hadn't loaded
  successfully before, but now it just tries once per httpd,
  so the web server will have to be restarted to see new installed
  modules.  This is just for modules that Apache::ASP relies on.
  Old modules that are changed or updated with an installation
  are still reloaded with the StatINC settings if so configured. 
 +ASP web site wraps <font face="courier new"> around <pre>
  tags now to override the other font used for the text
  areas.  The spacing was all weird in Netscape before
    
  
  
    By default, CacheControl is 'private', and this value gets sent out
  every request as HTTP header Cache-Control.  Charset appends itself
  onto the content type header.
 +Implemented $Request->BinaryRead(), $Request->{TotalBytes},
  documented them, and updated ./eg/form.asp for an example usage. 
 +Implemented $Response->BinaryWrite(), documented, and created
  and example in ./eg/binary_write.htm
 +Implemented $Server->MapPath() and created example of its use
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
If C<ThumbNailUse> is set to "aspect", thumbnails that need to be
created will be transformed by the value of C<ThumbNailAspect>.
C<ThumbNailAspect> can be either a floating point number like 0.25 or
it can be a ratio like 2 / 11.
If an image file is updated, the corresponding thumbnail file will be
updated the next time the page is accessed.  In practice I have found
that Netscape will used the cached images even if they are updated.  I
normally have to flush the cache and reload to see the new images.
At any time you can C<rm -f tn__*> in the C<AlbumDir>/album_name/
directory, the next time the page is loaded all the thumbnails will be
regenerated.  (Naturally image names that start with tn__ should be
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
AliasList.pm view on Meta::CPAN
Apache provides an C<Alias> directive which can be used to make these
translations in the F<httpd.conf> configuration file. This approach however
has the disadvantage that a server restart is required for any changes to
take effect. Apache::AliasList removes this requirement by moving the alias
definitions into a separate file which can be updated without restarting
the server.
When an incoming request matches one of the listed aliases, an internal
redirect is performed - this keeps the original URI in the location bar
of the user's browser. 
    
  
  
     view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/AppSamurai.pm view on Meta::CPAN
    if ($sessconfig->{Expire}) {
	$sess{'etime'} = $sess{'ctime'} + $sessconfig->{Expire};
	$sess{'Expire'} = $sessconfig->{Expire};
    }
    # Apply passback cookies to response, and pull in updated alterlist
    if (defined($alterlist->{cookie})) {
	$alterlist = $self->AlterlistPassBackCookie($alterlist, $r);
    }
    # If present, save Authorization header to detect future changes,
    
  
  
  lib/Apache/AppSamurai.pm view on Meta::CPAN
	$c{$key}->value('');
	$c{$key}->expires('Thu, 1-Jan-1970 00:00:00 GMT');
	push(@ct, "passback:" . $c{$key});
    }
    # Save updated cookie array
    @{$alterlist->{cookie}} = @ct; 
    return $alterlist;
}
    
  
  
     view all matches for this distribution