Might I suggest making this extension into a class structure and make it multi-threaded to keep blocking issues from happening.
This project used "on-event" functions on extending classes to deal with the blocking issues: https://github.com/nicokaiser/php-websocket I wrote this one a while ago that uses multiple threads to deal with blocking problems: http://www.phpclasses.org/package/7259-PHP-Handle-Web-socket-accesses-using- child-processes.html Software Developer Nathan Bruer -----Original Message----- From: Ray Perea [mailto:[email protected]] Sent: Thursday, December 27, 2012 9:32 AM To: [email protected] Subject: [PECL-DEV] I want to publish my extension (php websockets) Hello. My name is Ray Perea of Snap Web Systems. (http://www.snapws.com) I am writing this list because I would like to publish my PHP extension in PECL The extension introduces some functions for reading from and writing to websockets (RFC6455) These functions are: ws_send() - Send data to a websocket connection ws_read() - Read data from a websocket connection (Can read binary frames and files) ws_close() - Sends a close frame to the websocket client I have published the source code at sourceforge: https://sourceforge.net/p/phpwebsockets Please have a look and see if you would like me to publish my extension in PECL. Thanks in advance for your consideration. -- Ray Perea Snap Web Systems Like us on Facebook Follow us on Twitter -- PECL development discussion Mailing List (http://pecl.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
