fnet.c

Simple C networking library
git clone git://git.finwo.net/lib/fnet.c
Log | Files | Refs | README

commit 5999ce9e450115ea21d5bb3ea54771b2dab704eb
parent ecce6b940e918db6d82a54b2d907a58fe026ae28
Author: Yersa Nordman <yersa@finwo.nl>
Date:   Thu, 27 Jul 2023 20:29:06 +0200

Update fnet_step to trigger process for all connections

Diffstat:
Msrc/fnet.c | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/fnet.c b/src/fnet.c @@ -265,7 +265,13 @@ FNET_RETURNCODE fnet_free(struct fnet_t *connection) { } FNET_RETURNCODE fnet_step() { - // TODO: process all open fnet instances + struct fnet_internal_t *conn = connections; + FNET_RETURNCODE ret; + while(conn) { + ret = fnet_process(conn); + if (ret < 0) return ret; + conn = conn->next; + } return FNET_RETURNCODE_OK; }