Yes. I only need the pecl account.
I just want to add my extension to pecl, for everyone to use.
I want to write a document on pecl.net. I will always maintain this project
It's like node.js, but more powerful. Swoole can use multi-process.
Here is a example code :
*Server*
$serv = new swoole_server("127.0.0.1", 9501);$serv->on('connect',
function ($serv, $fd){
echo "Client:Connect.\n";});$serv->on('receive', function ($serv,
$fd, $from_id, $data) {
$serv->send($fd, 'Swoole: '.$data);
$serv->close($fd);});$serv->on('close', function ($serv, $fd) {
echo "Client: Close.\n";});//$serv->set(array('worker_num' =>
4));$serv->start();
*Client*
$client = new swoole_client(SWOOLE_SOCK_TCP, SWOOLE_SOCK_ASYNC);
$client->on("connect", function($cli) {
$cli->send("hello world\n");});
$client->on("receive", function($cli){
$data = $cli->recv();
echo "Receive: $data\n";});
$client->on("error", function($cli){
echo "connect fail\n";});
$client->on("close", function($cli){
echo "close\n";
$cli->close();});
$client->connect('127.0.0.1', 9501, 0.5);
<https://github.com/matyhtf/swoole#features>
2013/12/11 Hannes Magnusson <[email protected]>
> Are you planning on maintaining the code on github?
> Then you only need the pecl account, not a php.net vcs account..
>
> -Hannes
>
> On Wed, Oct 16, 2013 at 9:32 PM, ShareIdea! <[email protected]> wrote:
> > My license is apache2.0.
> >
> > Thanks for your advice, I'll fix it.
> >
> >
> > 2013/10/17 Laruence <[email protected]>
> >>
> >> Hey:
> >>
> >> the codes seems okey.
> >>
> >> one trivial issue, if you don't need RINIT/RSHUTDOWN, then use
> >> NULL in the module struct.
> >>
> >> and one question: what's your LICENSE is?
> >>
> >> thanks
> >>
> >> On Thu, Oct 17, 2013 at 10:34 AM, ShareIdea! <[email protected]>
> >> wrote:
> >> > Hi. Thanks for your reply.
> >> > The project's link: https://github.com/matyhtf/swoole
> >> >
> >> > It is used in some web page games.
> >> > Phper can use it to write tcp and udp server-side program.
> >> >
> >> > Swoole network IO partly based epoll / kqueue event loop is
> asynchronous
> >> > &
> >> > non-blocking. Business logic using multi-process synchronization
> >> > blocking
> >> > mode to run. This will ensure the Server is able to cope with high
> >> > concurrency and a lot of TCP connections. But also to ensure the
> >> > business
> >> > can still be easy to write code.
> >> >
> >> > Can you add it to the pecl.php.net?
> >> >
> >> >
> >> > 2013/9/15 Hannes Magnusson <[email protected]>
> >> >>
> >> >> On Thu, Aug 22, 2013 at 1:05 AM, Antony Dovgal <[email protected]>
> >> >> wrote:
> >> >> > On 2013-08-21 05:58, Han Rango wrote:
> >> >> >>
> >> >> >> Publish a TCP/UDP Server extension.
> >> >> >
> >> >> >
> >> >> > Would be nice if you make the code available before adding it to
> >> >> > PECL.
> >> >> > And telling us some more about it would not hurt, too.
> >> >> >
> >> >>
> >> >> Poke?
> >> >>
> >> >> -Hannes
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> Laruence Xinchen Hui
> >> http://www.laruence.com/
> >
> >
>