Description: C language, simulated chunked.http download, chunked encoding is to chunk data into multiple small data blocks, each block can specify the length, that is, parse content-length attribute of http header, can not know detailed file size.
This Demo receiving data on one side, while in the buffer assembly, little memory, and very efficient.
To Search:
File list (Check if you may need any files):
http_chunk_demo\http_chunk_demo\dechunk.c
...............\...............\dechunk.h
...............\...............\http_chunk_demo.1
...............\...............\................xcodeproj\imac1.mode1v3
...............\...............\.........................\imac1.pbxuser
...............\...............\.........................\project.pbxproj
...............\...............\main.c
...............\__MACOSX\http_chunk_demo\._dechunk.c
...............\........\...............\._dechunk.h
...............\........\...............\._main.c
...............\http_chunk_demo\http_chunk_demo.xcodeproj
...............\__MACOSX\http_chunk_demo
...............\http_chunk_demo
...............\__MACOSX
http_chunk_demo