diff options
| author | Nakidai <nakidai@disroot.org> | 2024-12-15 15:10:03 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2024-12-15 15:10:03 +0300 |
| commit | c5ddf04afa78dc879827fce5cf50de03b35bf110 (patch) | |
| tree | 34b596d954fba13012279491c6ae67ad409ffdb0 /include/libhttpc.h | |
| parent | 6389c37dd593898a01b0159bd879ed4edc6cd6a5 (diff) | |
| download | libhttpc-c5ddf04afa78dc879827fce5cf50de03b35bf110.tar.gz libhttpc-c5ddf04afa78dc879827fce5cf50de03b35bf110.zip | |
Implement LibHTTPC_readRequest
Not complete, though
Diffstat (limited to 'include/libhttpc.h')
| -rw-r--r-- | include/libhttpc.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/libhttpc.h b/include/libhttpc.h index 241fac0..35f1cca 100644 --- a/include/libhttpc.h +++ b/include/libhttpc.h @@ -280,7 +280,12 @@ int LibHTTPC_Request_(struct LibHTTPC_Request *request); #ifdef LibHTTPC_SOCK /** - * Not implemented yet + * Read request from sockfd + * @param sockfd From where to read request + * @param[out] request_buf Where to save request. Can be NULL, then library will allocate it itself + * @param[out] buf Where to save received data, can't be NULL. + * @param buf_len Length of buffer, must be greater than 0 + * @return Pointer to request on success, NULL otherwise */ struct LibHTTPC_Request *LibHTTPC_readRequest( int sockfd, |