]> Kevux Git Server - fll/commit
Update: Further re-design f_socket_connect().
authorKevin Day <thekevinday@gmail.com>
Sat, 9 Dec 2023 03:43:18 +0000 (21:43 -0600)
committerKevin Day <thekevinday@gmail.com>
Sat, 9 Dec 2023 03:43:18 +0000 (21:43 -0600)
commitc1e06dd20cd25d6cf1dd7e94d5b72a61184cfc0b
treeeaeb149f096bb93fe9c712ca051d73b9d3845bd0
parent596997daebd53246b205d0221c5c616bfafb7d23
Update: Further re-design f_socket_connect().

This is a follow up to commit 596997daebd53246b205d0221c5c616bfafb7d23.

Make sure to set the appropriate sizeof for the socket length.

Update the documentation comments to communicate that the socket length is updated on the function calls.

Make f_socket_connect()'s socket parameter a pointer.
Set the socket length in f_socket_connect() to the appropriate size.

Add documentation comments regarding the pointers that must not be NULL in f_socket.

Update the related unit tests.
level_0/f_socket/c/socket.c
level_0/f_socket/c/socket.h
level_0/f_socket/tests/unit/c/test-socket-connect.c
level_0/f_socket/tests/unit/c/test-socket-read.c
level_0/f_socket/tests/unit/c/test-socket-read_stream.c
level_0/f_socket/tests/unit/c/test-socket-write.c
level_0/f_socket/tests/unit/c/test-socket-write_stream.c