Skip to content

xiaoliuzi/znet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

znet - a simple C network library
---------------------------------

This library is inspired by Yawei Zhang's ZsummerX[1] library, but this one is
a pure C version. Now it implement a IOCP (IO Completion Port) backend on
Windows, and a epoll backend on Linux. A select-based backend is planed.

[1]: https://github.com/zsummer/zsummerX

It also have a buffer implement, mainly based the luaL_Buffer in Lua code. But
the interface is targeted by send/recv method, so it's very useful to make
znet send data continually and receive packets by packets.

See test.c for examples, and you can see more things in examples folder.

Have fun :)


TODO
----
- Lua binding is working-in-progress.
- select backend are planed.

About

A C network library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 91.1%
  • C++ 8.6%
  • Batchfile 0.3%