fnet.c

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

DateCommit messageAuthorFiles+-
2026-04-09 21:11Update package formatfinwo4+4-12
2024-03-02 23:35Updated dep refs in package.iniYersa Nordman1+4-2
2024-01-01 22:00Added calls to wsastartup and wsacleanup for windowsYersa Nordman1+16-0
2024-01-01 14:23Prevent double call of onClose if shutdown is called during the callbackYersa Nordman1+5-3
2023-12-31 00:02Ignore mac directory filesYersa Nordman1+2-0
2023-12-30 23:58Remove include sys/errno.h, we already have errno.h which is cross-compatibleYersa Nordman1+0-1
2023-12-30 23:55Replaced wepoll and epoll by finwo/poll libraryYersa Nordman3+45-86
2023-12-07 20:28Disable debug printsYersa Nordman1+7-7
2023-11-16 23:24Keep reading during recv while hitting limitsYersa Nordman1+17-7
2023-11-16 23:12Mark what's borked on windowsYersa Nordman1+4-0
2023-11-16 22:39Print how many listening fds are being processedYersa Nordman1+1-0
2023-11-16 22:38Show how many bytes were receivedYersa Nordman1+1-0
2023-11-16 22:26Include event count from epollYersa Nordman1+3-0
2023-11-16 22:23Don't export fnet_tickYersa Nordman1+0-1
2023-11-16 21:14Added minor debug prints in fnet_mainYersa Nordman2+6-0
2023-10-26 21:11Add fnet_thread function to initialize network in separate threadYersa Nordman2+5-0
2023-10-26 21:06remove type warning from known-good pointer retypeYersa Nordman1+1-1
2023-10-26 20:35Free connections on shutdown, not on main finishYersa Nordman1+1-3
2023-10-26 20:28Close all remaining connections when fnet_shutdown is calledYersa Nordman2+3-0
2023-10-26 19:24Keep virtual count of runners instead of keepRunningYersa Nordman2+10-4
2023-10-26 19:06Added a method for shutting down fnet_mainYersa Nordman2+9-1
2023-10-25 20:40Actually mark a connection as closedYersa Nordman1+2-2
2023-10-24 19:56Removed fnet_keepRunning, functionality's not neededYersa Nordman3+2-13
2023-10-24 19:44Added a way to stop fnetYersa Nordman3+14-1
2023-10-24 19:44Remove unneeded comments from ciYersa Nordman2+0-10
2023-10-23 20:26Adding linux build to tag as wellYersa Nordman1+15-2
2023-10-23 20:06Link with ws2_32.lib?Yersa Nordman1+1-0
2023-10-23 19:53Back to clang, cl is weirdYersa Nordman1+1-1
2023-10-23 19:51Remove Vanara/PInvoke againYersa Nordman2+8-8
2023-10-23 19:50Attempt using 'cl' compiler instead of clang on windowsYersa Nordman1+1-1
2023-10-23 19:47Move '-s' compilation flag to linking onlyYersa Nordman1+2-2
2023-10-23 19:44Include cflags during linkingYersa Nordman1+3-0
2023-10-23 19:41Add include dir for ws2 on windowsYersa Nordman2+41-7
2023-10-23 19:30Removed extern C to attempt fixing winsock importYersa Nordman2+0-16
2023-10-23 19:24Use 'Sleep' instead of 'usleep' on windowsYersa Nordman1+4-0
2023-10-23 19:22Use closesocket everywhere, not just in fnet_closeYersa Nordman1+8-0
2023-10-23 19:20Use closesocket on windowsYersa Nordman1+4-0
2023-10-23 19:16Use 'recv' instead of 'read'Yersa Nordman1+1-1
2023-10-23 19:12Using 'send' instead of 'write'Yersa Nordman1+1-1
2023-10-22 20:36Use full epoll polyfill with fallback to sys/epollYersa Nordman1+2-3
2023-10-22 20:19Add windows implementation for setting socket to non-blockingYersa Nordman1+10-0
2023-10-22 20:15Set socket type for windowsYersa Nordman1+5-1
2023-10-22 20:14Applied FNET_SOCKET macro throughout fnet.cYersa Nordman1+17-11
2023-10-22 19:35Attempt using piscisaureus/wepoll for windows epoll polyfillYersa Nordman2+3-3
2023-10-22 19:20Split time fetching linux and windowsYersa Nordman1+12-5
2023-10-22 18:57Replaced gettimeofday by timeb/ftimeYersa Nordman1+4-4
2023-10-22 18:28Set output file name for windows ; added tag filter on pipelineYersa Nordman2+14-4
2023-10-22 18:25Split includes in test.c as wellYersa Nordman1+5-0
2023-10-22 18:20Separating windows and linux includesYersa Nordman1+9-3
2023-10-22 18:17Added windows build in ciYersa Nordman1+33-42
2023-10-22 18:12Added workflow to test build in ciYersa Nordman1+108-0
2023-10-22 18:12Small found updateYersa Nordman1+1-1
2023-08-07 21:21Call onConnect after connecting using fnet_connect functionYersa Nordman1+10-0
2023-08-07 21:07Fixed multiple loop runs when no tdiffYersa Nordman1+1-1
2023-08-05 22:13More info on bind/listen errorsYersa Nordman1+2-2
2023-08-04 18:39Fix onListen callYersa Nordman1+1-1
2023-08-04 18:20Added onListen callbackYersa Nordman2+18-4
2023-08-04 18:13Fixed compilation warningsYersa Nordman2+6-5
2023-08-03 00:00Remove debug prints from libYersa Nordman3+5-5
2023-08-02 23:55Added minimal readmeYersa Nordman1+93-0
2023-08-02 23:55Limit amount of ticks the connect mode livesYersa Nordman1+14-5
2023-08-02 23:35Implemented epoll waiting instead of sleepingYersa Nordman2+115-21
2023-08-01 23:01Added client mode to test programYersa Nordman1+26-6
2023-08-01 23:00Implemented fnet_connect fnYersa Nordman1+83-2
2023-08-01 22:57Close connection on freeYersa Nordman1+5-1
2023-08-01 22:16Allow user of lib to detect if the connection was accepted or connectedYersa Nordman3+9-8
2023-08-01 22:10Added onTick supportYersa Nordman3+20-4
2023-08-01 21:52Renamed fnet_step to fnet_tickYersa Nordman2+3-3
2023-08-01 21:45Made port and address dynamic in test programYersa Nordman1+75-11
2023-08-01 20:49Implemented write and test echo serverYersa Nordman3+38-0
2023-07-27 20:50Implemented closing connectionsYersa Nordman2+26-9
2023-07-27 20:37Show in terminal that we're receiving dataYersa Nordman3+63-27
2023-07-27 20:35Added make clean commandYersa Nordman1+4-0
2023-07-27 19:44Actually accepting connections nowYersa Nordman3+166-36
2023-07-27 18:29Update fnet_step to trigger process for all connectionsYersa Nordman1+7-1
2023-07-27 18:23Track all connections from listen in doubly-linked-list ; update callbacks to have event structsYersa Nordman3+36-9
2023-07-27 18:04Actually return fnet_t, set nonblock on listening socketYersa Nordman1+18-21
2023-07-26 22:37Listening on arbitrary addressYersa Nordman3+157-18
2023-07-26 20:38Initialized returncode conceptYersa Nordman2+46-20
2023-07-26 20:30Re-added port to connect methodYersa Nordman2+8-2
2023-07-26 20:26Added fnet_step and fnet_main outlineYersa Nordman2+19-1
2023-07-24 02:05More argument presence checkingYersa Nordman1+42-0
2023-07-24 00:16Argument presence checking in fnet_listenYersa Nordman2+33-7
2023-07-18 21:48Basic project layoutYersa Nordman7+147-0