PHP Classes
Icontem

Class: PHP Multiplexed I/O


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Robert Young  >  PHP Multiplexed I/O  >  Download  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP Multiplexed I/O Support forum
Base name: phpmio
Description: Manage multiple simultaneous network connections
Related top rated classes: , ,
Version: 0.1
Required PHP version: 5.2
License: BSD License
All time users: 850 users
All time rank: 2757
Week users: 1 user
Week rank: 3880
 
  Author   Group folder image Groups   Detailed description   Freshmeat project  
  Rate classes User ratings   Trackback   Applications   Related links   Files Files  

Author

Picture of Robert Young
Name: Robert Young <e-mail contact>
Published packages: 2 Browse this author's classes Browse this author's classes
Country: United Kingdom United Kingdom - PHP jobs in United Kingdom
Home page: http://thethoughtlab.blogspot.com/
Age: 29
All time rank: 1475
Week rank: 1560

Innovation Award

PHP Programming Innovation award nominee
April 2007
Number 4
Some applications require retrieving information from many sources, like files or remote network connections.

Using synchronous access, a regular script can only access one data source at a time. If a script needs to poll multiple sources, not only it may take a lot of time, but waiting from one source to respond may halt the script forever.

An alternative approach to retrieve data from many sources is to use asynchronous access to poll many sources at the same time. This way it does not block the applications from doing parallel processing while waiting for the data to come.

This package provides a solution that uses non-blocking streams to provide simultaneous access to multiple files or network connections for any PHP application.

Manuel Lemos

Groups

Group folder image Networking Networking protocols, clients and servers View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Files and Folders Listing, accessing and manipulating files and folders View top rated classes

Detailed description

This package can be used to manage multiple simultaneous network connections or file accesses. It is loosely based on the selectable channels implementation from Java's NIO package.

It can create streams to access files, access network servers or accept connections from network clients.

The streams can be set to non-blocking mode, so this package can manage the access to data read or written to multiple streams simultaneously.

It can register selectors for all the streams, so it can wait and handle the data read or written to multiple streams when it is ready.

Freshmeat project

Project record: phpmio
Popularity score: 14.28
Vitality score: 0.0

User ratings

There are not enough user ratings to display for this class.

Trackback links

Link Description
PHP: Your imagination is your limit. Do you think PHP was only developed for write Web-Sites?... I invite ...

Applications that use this class

No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

Related links

Link Description
Sourceforge Sourceforge Project Page
The Thought Lab Tutorial article on using PHP-MIO

Files

File Role Description
Files folder image example
  Plain text file downloader.php Example Example of downloading multiple files
  Plain text file riddler.php Example Self contained example
Plain text file Exception.php Class Exception classes
Plain text file SelectionKey.php Class Contains the SelectionKey class
Plain text file Selector.php Class Contains the Selector class
Plain text file Stream.php Class Contains the Stream class
Plain text file StreamFactory.php Class Contains the StreamFactory class
Files folder image tests
  Plain text file SelectionKeyTest.php Test Unit test for SelectionKey class
  Plain text file SelectorTest.php Test Unit test for Selector class
  Plain text file StreamFactoryTest.php Test Unit test for StreamFactory class
  Plain text file StreamTest.php Test Unit test for StreamTest
Download all files: phpmio.tar.gz phpmio.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products