Skip to content

Simple single-file C wrapper code for non-blocking, thread-free sockets on Linux.

Notifications You must be signed in to change notification settings

jasonrohrer/tinySockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tinySockets

Simple single-file C wrapper code for thread-free, non-blocking sockets on Linux.

Wraps functionality in <sys/socket.h>

No mallocs internally (except for any that underlying socket implementation does).

Uses epoll for efficient handling of many non-blocking sockets.

The Nagle algorithm is disabled (TCP_NODELAY set). I expect user code to break outbound messages into chunks in an intelligent way (don't depend on the send call to handling buffering).

About

Simple single-file C wrapper code for non-blocking, thread-free sockets on Linux.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published