]> Kevux Git Server - fll/commit
Bugfix: f_socket_connect() should require non-negative socket.id.
authorKevin Day <thekevinday@gmail.com>
Thu, 30 Nov 2023 02:57:43 +0000 (20:57 -0600)
committerKevin Day <thekevinday@gmail.com>
Thu, 30 Nov 2023 02:57:43 +0000 (20:57 -0600)
commita55af231dacdf355323d42ba6e06f0188eb7d387
treecd54ca868a1fe3aa685829b2b09baecdb5b2c3ad
parent9eef1d822c4bff6b92e1e543441cdf96de8c0c86
Bugfix: f_socket_connect() should require non-negative socket.id.

I seem to have this one backwards.
The socket.id must be something other than -1.
If the socket.id is -1, then just return F_file_descriptor without error bit to designate that no descriptor is available to connect with.
level_0/f_socket/c/socket.c
level_0/f_socket/c/socket.h