How to write a PHP class to support concurrent connections?

php
Sporadical asked:


Two fsockopens() in a single script uncontrolled by classes is tedious to maintain and doesn’t work very well. Then, is there a class that would allow my PHP client script to connect to different servers concurrently and handle the connections for each (supporting fwrite, etc.?)

April
Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Mixx
  • De.lirio.us
  • NewsVine
  • Simpy
  • Slashdot
  • StumbleUpon
  • Technorati
  • Upnews

Tags: , , , ,

Monday, September 14th, 2009 Uncategorized

1 Comment to How to write a PHP class to support concurrent connections?

  1. I am not aware of a built in class that does it. The alternative may be to set up a loop to read or write from/to multiple sockets via callback functions.

  2. P34C3 on September 14th, 2009

Leave a comment