1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

for #742, refine the file reader and writer interface.

This commit is contained in:
winlin 2017-01-30 19:35:04 +08:00
parent bb5bd0ee1c
commit eaa222f034
13 changed files with 138 additions and 69 deletions

View file

@ -201,7 +201,7 @@ public:
* for the HTTP FLV, to writev to improve performance.
* @see https://github.com/ossrs/srs/issues/405
*/
virtual int writev(iovec* iov, int iovcnt, ssize_t* pnwrite) = 0;
virtual int writev(const iovec* iov, int iovcnt, ssize_t* pnwrite) = 0;
// WriteHeader sends an HTTP response header with status code.
// If WriteHeader is not called explicitly, the first call to Write