2 posts tagged “programming”
I recently released v0.07 of Sprocket, my Perl networking framework.
What's New
Some notable changes since v0.05 include:
Added a File Descripter passing utility module: Sprocket::Util::FDpasser which uses File::FDpasser
Spread integration; plugins can pubsub
Soft Shutdown
Observer hooks; attach callbacks to events by name
Log4perl logging
The file descriptor passer allows you to send or receive file handles across processes. This includes Sockets. For instance, Sprocket can now take connections from Apache for things like Cometd. See mod_handoff for the apache2 code. I have a partially working Sprocket::Server::FDreceiver module that will accept a socket from any process and inject it into the framework as if it handled the socket in the first place.
One point Oh
Don't let the version number fool you. It's not "1.0", but this framework is ready to help you get started on writing that server you've always wanted to write. v1.0 is on target for release in late December.
Getting Sprocket
You can download Sprocket, or get it using CPAN.pm:
perl -MCPAN -e 'install Sprocket'
or you can check it out from svn:
svn co http://svn.xantus.org/sprocket/trunk/Sprocket/ sprocket
Thanks
Thanks go to perigrin, andyg and dec for their help!
I've been working on an inter window communication javascript library based on javascript built for Vox. This allows browser windows or tabs on the same domain to communicate and cooperate. One use case for this is for comet connections. Due to self imposed browser limitations, multiple connections to the same domain are limited to two connections and comet connections would produce odd behavior when multiple windows or tabs are opened on the same domain. This is the first step in efficient use of a single comet connection across multiple tabs or windows. This library would be used with another project of mine: Cometd: The Scalable Comet Framework
Check out my demo: Inter Window Communication
Note: Currently this only works in Firefox 2 and IE 5.1+