From c5ddf04afa78dc879827fce5cf50de03b35bf110 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Sun, 15 Dec 2024 15:10:03 +0300 Subject: Implement LibHTTPC_readRequest Not complete, though --- include/libhttpc.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/libhttpc.h') 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, -- cgit 1.4.1