refactor(socket): improve read/write

This commit is contained in:
2026-03-25 01:56:06 +01:00
parent 3cb8fda44d
commit 6ef810f511
2 changed files with 42 additions and 24 deletions
+2 -2
View File
@@ -4,8 +4,8 @@
#include <myclib/mystring.h>
#include <sys/types.h>
ssize_t cws_socket_read(int sockfd, string_s *str);
int cws_socket_read(int sockfd, string_s *str);
ssize_t cws_socket_send(int sockfd, const char *buffer, size_t len, int flags);
int cws_socket_send(int sockfd, const char *buffer, size_t len, int flags);
#endif