fnet.c

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

commit 2784d97b7daa9f0560934fb511474101e3bbaeb4
parent 21137b3520935e58ecfc7d908f984b08b72e37df
Author: Yersa Nordman <yersa@finwo.nl>
Date:   Tue,  1 Aug 2023 23:52:05 +0200

Renamed fnet_step to fnet_tick

Diffstat:
Msrc/fnet.c | 4++--
Msrc/fnet.h | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/fnet.c b/src/fnet.c @@ -451,7 +451,7 @@ FNET_RETURNCODE fnet_free(struct fnet_t *connection) { return FNET_RETURNCODE_OK; } -FNET_RETURNCODE fnet_step() { +FNET_RETURNCODE fnet_tick() { struct fnet_internal_t *conn = connections; FNET_RETURNCODE ret; while(conn) { @@ -470,7 +470,7 @@ FNET_RETURNCODE fnet_main() { while(1) { // TODO: handle kill signal? // TODO: dynamic sleep to have 10ms - 100ms tick? - ret = fnet_step(); + ret = fnet_tick(); if (ret) return ret; // Sleep 10ms to lower cpu consumption diff --git a/src/fnet.h b/src/fnet.h @@ -72,7 +72,7 @@ FNET_RETURNCODE fnet_write(const struct fnet_t *connection, struct buf *buf); FNET_RETURNCODE fnet_close(const struct fnet_t *connection); FNET_RETURNCODE fnet_free(struct fnet_t *connection); -FNET_RETURNCODE fnet_step(); +FNET_RETURNCODE fnet_tick(); FNET_RETURNCODE fnet_main(); #ifdef __cplusplus