Commit b5b234fa authored by Sergey Lyubka's avatar Sergey Lyubka

Improved docstring for mg_read()

parent af89d244
...@@ -239,6 +239,10 @@ void mg_send_file(struct mg_connection *conn, const char *path); ...@@ -239,6 +239,10 @@ void mg_send_file(struct mg_connection *conn, const char *path);
// Read data from the remote end, return number of bytes read. // Read data from the remote end, return number of bytes read.
// Return:
// 0 connection has been closed by peer. No more data could be read.
// < 0 read error. No more data could be read from the connection.
// > 0 number of bytes read into the buffer.
int mg_read(struct mg_connection *, void *buf, size_t len); int mg_read(struct mg_connection *, void *buf, size_t len);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment