ext-uv/examples/pipe.php

13 lines
213 B
PHP
Raw Normal View History

2012-06-02 14:45:43 +02:00
<?php
2012-07-10 16:44:54 +02:00
$pipe = uv_pipe_init(uv_default_loop(), 0);
2012-06-02 14:45:43 +02:00
uv_pipe_open($pipe, 1);
//uv_pipe_bind($pipe,"/tmp/hoge.sock");
2020-02-15 22:36:03 +01:00
uv_write($pipe, "Hello", function($pipe, $buf) {
2012-06-02 14:45:43 +02:00
echo 1;
2020-02-15 22:36:03 +01:00
uv_close($pipe);
2012-06-02 14:45:43 +02:00
});
uv_run();