]> Kevux Git Server - fll/commit
Feature: Add f_socket_name_host() and f_socket_name_peer().
authorKevin Day <kevin@kevux.org>
Tue, 20 Jun 2023 02:52:12 +0000 (21:52 -0500)
committerKevin Day <kevin@kevux.org>
Tue, 20 Jun 2023 02:52:12 +0000 (21:52 -0500)
commit9272df4102ea4cb614b719f47e55c2d940f6bda1
tree697a5e5a941ca6e7dbbca939ec01428d4c7a20ef
parent1552e3cb0044887577cf4f519374447eb8c0fb8e
Feature: Add f_socket_name_host() and f_socket_name_peer().

Add missing network socket related functions for getting the "name" of the local or remote connections.

The local name is retuned as a string.

The remote name is returned on the f_socket_t structure.
I considered doing the work necessary to better generalize this but I decided not to.
I can leave that for once I am better experience in the network programming.
13 files changed:
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-mocks
level_0/f_socket/data/build/settings-tests
level_0/f_socket/tests/unit/c/mock-socket.c
level_0/f_socket/tests/unit/c/mock-socket.h
level_0/f_socket/tests/unit/c/test-socket-name_host.c [new file with mode: 0644]
level_0/f_socket/tests/unit/c/test-socket-name_host.h [new file with mode: 0644]
level_0/f_socket/tests/unit/c/test-socket-name_peer.c [new file with mode: 0644]
level_0/f_socket/tests/unit/c/test-socket-name_peer.h [new file with mode: 0644]
level_0/f_socket/tests/unit/c/test-socket.c
level_0/f_socket/tests/unit/c/test-socket.h