xref: /php-uv/examples/pipe.php (revision 99312394)
1<?php
2
3$pipe = uv_pipe_init(uv_default_loop(), 0);
4uv_pipe_open($pipe, 1);
5//uv_pipe_bind($pipe,"/tmp/hoge.sock");
6
7uv_write($pipe, "Hello", function($pipe, $buf) {
8    echo 1;
9    uv_close($pipe);
10});
11
12uv_run();
13