EventBuffer::write

(PECL event >= 1.6.0)

EventBuffer::writeWrite contents of the buffer to a file or socket

说明

public EventBuffer::write ( mixed $fd [, int $howmuch ] ) : int

Write contents of the buffer to a file descriptor. The buffer will be drained after the bytes have been successfully written.

参数

fd

Socket resource, stream or numeric file descriptor associated normally associated with a socket.

howmuch

The maximum number of bytes to write.

返回值

Returns the number of bytes written, or FALSE on error.

参见

相关文章
php eventbuffer prepend data to the front of the bufferphp eventbuffer moves all data from source buffer to the front of current bufferphp eventbuffer linearizes data within buffer and returns it s contents as a stringphp eventbuffer read data from a file onto the end of the bufferphp eventbuffer write contents of the buffer to a file or socketphp eventbufferevent connect buffer event s file descriptor to given address or unix socketphp eventbufferevent disable events read write or both on a buffer eventphp eventbufferevent enable events read write or both on a buffer eventphp ftp 函数 append the contents of a file to another file on the ftp serverphp newt 函数 discards the contents of the terminal s input buffer without waiting for additional inputphp svn 函数 returns a stream to access the contents of a file from a given version of the fsphp swoole 函数 write data to a file asynchronouslyphp swoole 函数 get the file description which are ready to read/write or errorphp phar instructs phar to intercept fopen file get contents opendir and all of the stat related functionsphp phar set the contents of an internal file to those of an external filephp phardata set the contents of a file within the tar/zip to those of an external file or stringphp pharfileinfo get the complete file contents of the entryphp splfileobject write to filephp swoole async write data to a file stream asynchronously.php swoole buffer write data to the memory buffer. the memory allocated for the buffer will not be changed.
关注编程学问公众号