Cross-platform C utility library focusing on efficient development and easy-to-use.
Reuse, not rework or reinvent.
Using C to build important infrastructure, not everything.
DO NOT need to install any dependency library before building of libsg.
Common C API vs libsg API sample.
Header files of libsg include nothing but only pure API declaration, and APIs will not cause misunderstanding.
Common C API vs libsg API sample
Key modules are optimized, you can create high performance application with libsg.
Linux / Windows / OS X
https://github.com/metalwood/libsg/archive/master.zip
Before building, make sure CMake / XMake and C compiler(gcc/clang/msvc) has been installed correctly. Make sure the source path does not have space.
Linux / MacOS
$ mkdir build
$ cd build
$ cmake ..
$ make -j4
Windows
$ md build
$ cd build
$ cmake ..
open .sln with Visual Studio and compile the project
coming soon
sys atom mutex rwlock spin_lock memory module os proc time fs flag shell sleep thread ntp
str charset regex sprintf vlstr(variable length string)
net tcp/tcp_server udp/udp_server http/http_server websocket ftp
etp/etp_server: a extreme transfer protocol based on KCP / LIBUV(UDP) and FEC, it's fast and reliable.
db sqlite ejdb berkeleydb
container bip_buf list queue xml msgpack json
compress zip gzip
crypto
md: message digest algorithm pack including MD2/MD4/MD5/SHA1/SHA224/SHA256/SHA512.
mac: message authentication code algorithm pack including HmacMD5...
sym: symmetric encryption algorithm pack including DES/3DES/AES.
hash uuid murmur
media capture_v capture_a rtsp player
math c_int c_float big_int big_float
platform windows/dial...
util assert dump log
English: Linux kernel coding style 简体中文: Linux内核编码风格
email: metalwood@foxmail.com QQ群: 556925561
metalwood (metalwood@foxmail.com)
canmor (476010464@qq.com)
vincent (vin@misday.com)