Net::Chat::Daemon 0.3
Sponsored Links
Net::Chat::Daemon 0.3 Ranking & Summary
File size:
0.013 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
933
Date added:
2007-04-04
Publisher:
Steve Fink
Net::Chat::Daemon 0.3 description
Net::Chat::Daemon is a Perl module to run a daemon that is controlled via instant messaging.
ABSTRACT
This package is intended to serve as a superclass for objects that want to communicate via IM messages within a distributed network of client nodes and a coordinator, without dealing with the complexities or implementation details of actually getting the messages from place to place.
It pretends to be protocol-neutral, but for now and the conceivable future will only work with a Jabber transport. (It directly uses the message objects and things that Jabber returns.)
Note that this package will NOT help you implement an instant messaging server. This package is for writing servers that communicate with other entities via instant messages -- servers written using this package are instant messaging *clients*.
SYNOPSIS
package My::Server;
use base Net::Chat::Daemon;
sub handleHello {
return "hello to you too";
}
sub handleSave {
my ($filename, $file) = @_;
return "denied" unless $filename =~ /^[.w]+$/;
open(my $fh, ">/var/repository/$filename") or return "failed: $!";
print $fh $file;
close $fh or return "failed: $!";
return "ok";
}
sub someMethod {
my ($self, @args) = @_;
.
.
.
}
sub new {
my ($class, $user, %options) = @_;
return $class->SUPER::new(%options,
commands => { callMethod => someMethod,
save => &handleSave });
}
package main;
my $server = My::Server->new(myuserid@jabber.org);
$server->process();
# or to do it all in one step, and retry connections for 5 minutes
# (300 seconds) before failing due to problems reaching the server:
My::Server->run(myuserid@jabber.org, retry => 300);
When you run this, you should be able to send a message to userid@jabber.org saying "hello" and get a response back, or "callMethod a b c" to call the method with the given arguments.
To use the "save" command, youll need to use a command-line client capable of sending attachments in the format expected by this server (it currently does not use any standard file-sending formats).
The jabber command packaged with this module can do this via the -a command-line option.
A note on the implementation: when I first wrote this, it was really only intended to be used with Jabber. The code hasnt been fully restructured to remove this assumption.
ABSTRACT
This package is intended to serve as a superclass for objects that want to communicate via IM messages within a distributed network of client nodes and a coordinator, without dealing with the complexities or implementation details of actually getting the messages from place to place.
It pretends to be protocol-neutral, but for now and the conceivable future will only work with a Jabber transport. (It directly uses the message objects and things that Jabber returns.)
Note that this package will NOT help you implement an instant messaging server. This package is for writing servers that communicate with other entities via instant messages -- servers written using this package are instant messaging *clients*.
SYNOPSIS
package My::Server;
use base Net::Chat::Daemon;
sub handleHello {
return "hello to you too";
}
sub handleSave {
my ($filename, $file) = @_;
return "denied" unless $filename =~ /^[.w]+$/;
open(my $fh, ">/var/repository/$filename") or return "failed: $!";
print $fh $file;
close $fh or return "failed: $!";
return "ok";
}
sub someMethod {
my ($self, @args) = @_;
.
.
.
}
sub new {
my ($class, $user, %options) = @_;
return $class->SUPER::new(%options,
commands => { callMethod => someMethod,
save => &handleSave });
}
package main;
my $server = My::Server->new(myuserid@jabber.org);
$server->process();
# or to do it all in one step, and retry connections for 5 minutes
# (300 seconds) before failing due to problems reaching the server:
My::Server->run(myuserid@jabber.org, retry => 300);
When you run this, you should be able to send a message to userid@jabber.org saying "hello" and get a response back, or "callMethod a b c" to call the method with the given arguments.
To use the "save" command, youll need to use a command-line client capable of sending attachments in the format expected by this server (it currently does not use any standard file-sending formats).
The jabber command packaged with this module can do this via the -a command-line option.
A note on the implementation: when I first wrote this, it was really only intended to be used with Jabber. The code hasnt been fully restructured to remove this assumption.
Net::Chat::Daemon 0.3 Screenshot
Net::Chat::Daemon 0.3 Keywords
Daemon 0.3
Instant Messaging
To run
Perl module
instant
via
package
return
messaging
module
Net::Chat::Daemon
NetChatDaemon
Net::Chat::Daemon 0.3
Libraries
Programming
Bookmark Net::Chat::Daemon 0.3
Net::Chat::Daemon 0.3 Copyright
WareSeeker periodically updates pricing and software information of Net::Chat::Daemon 0.3 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Net::Chat::Daemon 0.3 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
yahoo instant messaging
aol instant messaging
instant messaging service
im instant messaging
instant messaging programs
instant messaging convo
instant messaging without downloading
instant messaging software
instant messaging abbreviations
instant messaging conversation
instant messaging language
msn instant messaging
instant fisherman
instant messaging client
instant messaging codes
instant messaging on ipod touch
aim instant messaging
how to run faster
Related Software
Python Music Daemon is yet another jukebox written in Python. Free Download
Net::Chat::Jabber is a Jabber protocol adapter for Net::Chat::Daemon. Free Download
Net::CyanChat is a Perl interface for connecting to Cyan Worlds chat room. Free Download
B-Chat is a small application which allows you to chat on Battle.net. Free Download
MP3::Daemon::PIMP is a Perl module daemon for Pips Intergallactive Moosex Plaqueluster. Free Download
Net::GPSD is a Perl module that provides an object client interface to the gpsd server daemon. Free Download
tngCalendar is a Web calendar addon to the TNG software for online genealogy. Free Download
Password Manager Daemon is a daemon that serves data to application via a socket. Free Download
Latest Software
Popular Software
Favourite Software