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 append data to the end of an event bufferphp eventbuffer move all data from a buffer provided to the current instance of eventbufferphp 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 extracts a line from the front of the bufferphp eventbuffer scans the buffer for an occurrence of a stringphp eventbuffer scans the buffer for an occurrence of an end of linephp 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 enable events read write or both on a buffer eventphp eventbufferevent creates a new ssl buffer event to send its data over an ssl on a socketphp newt 函数 discards the contents of the terminal s input buffer without waiting for additional inputphp socket 函数 sets nonblocking mode for file descriptor fdphp harudoc write the document data to the output bufferphp phar instructs phar to intercept fopen file get contents opendir and all of the stat related functionsphp 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 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.php ziparchive add a file to a zip archive using its contents
关注编程学问公众号