Takeshi Miki > Hoppy-0.01005 > Hoppy

Download:
Hoppy-0.01005.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01005   Source  

NAME ^

Hoppy - Flash XMLSocket Server.

SYNOPSIS ^

  use Hoppy;

  use MyService::Auth;
  use MyService::Chat;

  my $config = {
    alias => 'hoppy',
    port  => 12345,
    test  => 1,      # does not work POE::Filter::Line ( use it as telnet when debug phaze )
  };

  my $server = Hoppy->new(config => $config);

  $server->regist_service(
     auth => 'MyService::Auth',
     chat => 'MyService::Chat',
  );

  $server->start;

DESCRIPTION ^

Hoppy is a perl implementation of Flash XMLSocket Server.

METHODS ^

new(config => $config)

regist_service( $service_label => $service_class )

regist_hook( $hook_class => $args )

start

stop

unicast( { user_id => $user_id, messge => $message } )

multicast( { sender => $sender_session_id, room_id => $room_id, message => $message } )

broadcast( { sender => $sender_session_id, message => $message } )

dispatch($method, $params, $poe)

AUTHOR ^

Takeshi Miki <miki@cpan.org>

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO ^

syntax highlighting: