libfastcommon
libfastcommon copied to clipboard
c common functions library extracted from my open source project FastDFS. this library is very simple and stable. functions including: string, logger, chain, hash, socket, ini file reader, base64 enc...
auto result = fdfs_client_init("/etc/fdf/client.conf"); I compiled it on ubuntu with gcc 6.2, and my program crashed. I guess there may be something wrong with your usage of calling sprintf. The...
cenos7下执行./make.sh 没有任何反眏. 系统版本: Linux dfs-tracker 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux 相关编译器版本: Package 1:make-3.82-23.el7.x86_64 already installed and latest version Package cmake-2.8.12.2-2.el7.x86_64 already installed...
sed: can't read s/\$(CFLAGS)/-Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -DDARWIN/g: No such file or directory sed: can't read s/\$(LIBS)/-lm/g: No such file or directory sed: can't read s/\$(LIB_VERSION)/lib64/g: No such file...
第三个参数size,应该是接收buf长度,你默认为接收数据长度了。原来recv可以正常接收的。你可以测试下,你的接收过程中是有问题的。
libserverframe-1.1.23 --------------------------------- gcc -Wall -Wformat-truncation=0 -Wformat-overflow=0 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o sf_nio.lo sf_nio.c -Iinclude -I/usr/local/include In file included from /usr/include/fastcommon/fast_task_queue.h:19:0, from sf_nio.c:38: /usr/include/fastcommon/ioevent.h:82:2: error: #error port me #error...
联系
作者可以留个联系方式吗?
https://github.com/happyfish100/libfastcommon/blob/aa2fc62cbb3b02a544922e6cf35eac6e423f97de/src/sockopt.c#L1871 应该放在 #endif 外面吧