]> Kevux Git Server - fll/commit
Update: Socket bind functions, socket address family enumeration, and rename max_backlog.
authorKevin Day <kevin@kevux.org>
Sat, 8 Jul 2023 03:36:17 +0000 (22:36 -0500)
committerKevin Day <kevin@kevux.org>
Sat, 8 Jul 2023 03:36:17 +0000 (22:36 -0500)
commitaf24aa5bf2ae888bad7e72543e07ee19935b21cc
tree4ecff29aafb924a72efa1cfcd181ea7418725360
parent165b96f670d2e617cec8b1524f148b5ad04e5e6c
Update: Socket bind functions, socket address family enumeration, and rename max_backlog.

Change the f_socket_bind_local() bind function to not call memset() and use the new address structure.
Add f_socket_bind_inet4() and f_socket_bind_inet6() bind functions in a similar way to f_socket_bind_local().

Update the appropriate documentation.
Add the appropriate unit tests.

The name max_backlog for f_socket_listen() is better named backlog_max as per the FLL style practices.
level_0/f_socket/c/socket.c
level_0/f_socket/c/socket.h
level_0/f_socket/c/socket/common.h
level_0/f_socket/data/build/settings-tests
level_0/f_socket/tests/unit/c/test-socket-bind_inet4.c [new file with mode: 0644]
level_0/f_socket/tests/unit/c/test-socket-bind_inet4.h [new file with mode: 0644]
level_0/f_socket/tests/unit/c/test-socket-bind_inet6.c [new file with mode: 0644]
level_0/f_socket/tests/unit/c/test-socket-bind_inet6.h [new file with mode: 0644]
level_0/f_socket/tests/unit/c/test-socket-bind_local.c
level_0/f_socket/tests/unit/c/test-socket.c
level_0/f_socket/tests/unit/c/test-socket.h