Intro and new extension: event2game

From: Date: Fri, 21 Sep 2012 07:29:46 +0000
Subject: Intro and new extension: event2game
Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-9826@lists.php.net to get a copy of this message
Hello, I am Lein, I am phper, I have written PHP more than 9 years, recent four year I has written webgame back-end using PHP. But , I found in some case PHP is not suitable, so I wrote an extension, I named it event2game. Current repo: https://github.com/leinchu/event2game/ The aim of this extension is to make PHP more suitable for the development of webgame back-end. This extension contains these targets : a) Able to create a socket server, the server is able to allow more than 1024 users to connect in; b) Threading capabilities, some of the functions can be placed in a thread to run; c) Additional, I also wrote a FastCGI client function, which can be used to work with PHP-FPM; d) Easy to use; As I am not familiar with the c language and PHP extention AND Zend API, I suppose there are may problems with my code, hope your suguestion and help! Thanks a lot ! PHP Functions: //socket server functions "evtgame_set_function", returns Boolean, Set callback functions(open_callback,close_callback,read_callback) for socket server "evtgame_run", returns Boolean, start socket server "evtgame_send", returns Boolean, send message to client //thread function "evtgame_thread_start", returns Boolean, run function in a new thread //fastcgi client functions "evtgame_cgi_filepath", returns Boolean, Set the path of the php file which you want to cgi-server execute "evtgame_cgi_request", returns string, request fastcgi server to run a script

« previous php.pecl.dev (#9826) next »