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 encode / decode, url encode / decode, fast timer, skiplist, object pool etc. detail info please see the c header files.
第三个参数size,应该是接收buf长度,你默认为接收数据长度了。原来recv可以正常接收的。你可以测试下,你的接收过程中是有问题的。