PHP Developer's Network : Network Member
Forums

PHP Classes
Icontem

Class: Simple Server


  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!
      Classes of MC Breit  >  Simple Server  >  Download  >  Support forum Support forum  >  RSS 1.0 feed RSS 2.0 feed Latest changes  >  Stumble It! Stumble It!  >  Bookmark in del.icio.us Bookmark in del.icio.us  
  Supplied by   Group folder image Groups   Detailed description   Freshmeat project  
  Rate classes User ratings   Applications   Related links   Files Files  
  • Supplied by:

    Picture of MC Breit
    Name: MC Breit <e-mail contact>
    Published packages: 7
    Country: Germany Germany - PHP jobs in Germany
    Home page: ???
    Age: 108
    All time rank: 259
    Week rank: 223

    Browse this author's classes

  • Groups:

    Group folder image Networking Networking protocols, clients and servers View top rated classes
  • Detailed description:

    This class provides an interface for implementing TCP socket servers by handling the connections, sending and retrieving data to the clients that connect to the server.

    The class has the ability buffer the data received from the clients. The data may be returned to the calling script in smaller chunks split by a given divider character sequence. This is convinient for line oriented protocols with which the line break and line feed character sequence is used to delimit the protocol commands. But in your opinion you can choose any character to split or deactivate splitting.

    You can build servers that handle the protocol dialogs in loops, but you can also create servers that are just waiting for one connection and then they shut down when they are that with that connection.

    Now there is also a second class inside this package (SimpleServerCallback) which allows you to create simplified callback based TCP Deamons. It is very easy to handle this way, a example for this is also included. But you should note that the Callback Interface is testing and not stable yet!


    Three examples are included:
    o A simple ECHO server
    o A simple Time server
    o A funny FOO server, based on callbacks..
  • Freshmeat project:

    Project record: mcb.simpleserver
    Popularity score: 199.80 (0.32%)
    Popularity rank: 17,024 (PHP Classes: 123)
    Vitality score: 2.02 (0.00%)
    Rating: Not yet rated Please rate this class in Freshmeat
  • User ratings:

    Ratings
    Utility
    Consistency
    Documentation
    Examples
    Tests
    Videos
    Overall
    Rank
    All time:
    Sufficient (75.0%)
    Good (83.3%)
    -
    Sufficient (79.2%)
    -
    -
    Not sure (53.8%)
    946
    Month:
    Not yet rated by the users
  • 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
    Download version 0.9.8 as zip Download of the (old) version 0.9.8 of this package as Zip Archive
    Download version 0.9.9 as zip Download of the (new) version 0.9.9 of this package as Zip Archive
    Homepage Homepage of the class
  • Files:

    File Role Description
    Plain text file echo_server.php Example A Simple ECHO Server, acts interactive to the clients input - Demonstrates the "connection keep alive" routine..
    Plain text file foo_callback_server.php Example A funny FOO server, demonstrates how to use the Callback based interface of SimpleServerCallback.class.php
    Plain text file SimpleServer.class.php Class The main class - Providing all the functions needed..
    Plain text file SimpleServerCallback.class.php Class Derivation of the main class, providing a Callback based interface.
    Plain text file time_server.php Example A simple timeserver, prints out the local server time in ISO 8601 - Demonstrates the "connection close" routine..
    Download all files: simpleserver.tar.gz simpleserver.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-2008 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products