ext-uv/examples/pipe.php
2012-06-02 21:45:43 +09:00

13 lines
185 B
PHP

<?php
$pipe = uv_pipe_init(1,1);
uv_pipe_open($pipe, 1);
//uv_pipe_bind($pipe,"/tmp/hoge.sock");
uv_write($pipe, "Hello",function($s,$b){
echo 1;
uv_close($b);
});
uv_run();