feat(socket): add read/write all

This commit is contained in:
2025-09-16 22:25:59 +02:00
parent aef9914747
commit 69e9ea2ac3
2 changed files with 51 additions and 0 deletions

View File

@@ -28,6 +28,10 @@ int sock_platform_init();
/* Use this to close a socket */
int sock_close(int socket);
/* Read/Write all to socket */
int sock_readall(int socket, void *out, size_t n);
int sock_writeall(int socket, const void *buf, size_t n);
/* Use at exit */
int sock_platform_shutdown();