Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.979.131 Times

Net::Chat::Daemon 0.3

  Date Added: April 01, 2010  |  Visits: 549

Net::Chat::Daemon

Report Broken Link
Printer Friendly Version


Product Homepage
Download (73 downloads)

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..

Requirements: No special requirements
Platforms: Linux
Keyword: Instant Libraries Module Netchatdaemon Package Perl Module Programming Return Sub To Run Via
Users rating: 0/10

License: Freeware Size: 13.31 KB
NET::CHAT::DAEMON RELATED
Libraries  -  Module::Install::Philosophy 0.67
Module::Install::Philosophy Perl module contains the concepts behind Module::Install. SYNOPSIS This document describes the personal philosophy behind the creation of CPAN::MakeMaker (the predecessor of Module::Install). The views expressed...
81.92 KB  
Libraries  -  Alien Perl module 0.91
Alien Perl module package contains external libraries wrapped up for your viewing pleasure! SYNOPSIS perldoc Alien; Alien is a package that exists just to hold together an idea, the idea of Alien:: packages, so there is no code here, just...
10.24 KB  
Libraries  -  Module::Build::TestReporter 1.00
Module::Build::TestReporter is a Perl module to help users report test failures. SYNOPSIS use Module::Build::TestReporter; my $build = Module::Build::TestReporter->new( # normal Module::Build code here ); # or, in your own M::B subclass...
8.19 KB  
Libraries  -  OpenGeoDB Perl module 0.4
OpenGeDB Perl module is a module to access the OpenGeoDB database and calculate all ZIP codes in a certain radius..
3.07 KB  
Libraries  -  RPM::Make 0.8
RPM::Make is a Perl module to cleanly generate an RPM. SYNOPSIS use RPM::Make; # The "Manifest": list of files that will comprise the software package. my @filelist=(tmproot/file1.txt, tmproot/file2.txt, tmproot/file3.txt,...
16.38 KB  
Libraries  -  Test::STDmaker::STD 0.23
Test::STDmaker::STD is a Perl module that generates a STD POD from a test description short hand. The Test::STDmaker::STD package is an internal driver package to the Test::STDmaker package that supports the Test::STDmaker::tmake() method. Any...
133.12 KB  
Libraries  -  Chart::Graph::Xrt3d 3.2
Chart::Graph::Xrt3d is a Perl module for creating 3D graph charts. SYNOPSIS #Include module use Chart::Graph::Xrt3d qw(xrt3d); # Function call xrt3d(%options, @data_set ); This module is unmaintained, it worked with Sitrakas XRT, and...
245.76 KB  
Network & Internet  -  MyCMS perl module 1.0
MyCMS perl module provides the MN::CMS Perl module used by the MyCMS. MyCMS perl module contains Perl object classes to manage the data of MyCMS (such as articles, links, and images). MN::CMS is a perl module that allows you to manage an...
16.38 KB  
Libraries  -  Flash::FLAP::Object 0.09
Flash::FLAP::Object is a Perl module translated from PHP Remoting v. 0.5b from the -PHP project. Package used for building and retreiving header and body information. Installation: 1a. If you have access to Macromedia Flash MX, load the...
440.32 KB  
Libraries  -  PDL::Tips 2.4.3
PDL::Tips is a Perl module with small tidbits of useful arcana. Programming tidbits and such. SYNOPSIS use PDL; # Whatever happens here. This page documents useful idioms, helpful hints and tips for using Perl Data Language v2.0. Help...
2.1 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB