Home » Community » U++ community news and announcements » New internet support (TcpSocket, HttpRequest)
New internet support (TcpSocket, HttpRequest) [message #36047] |
Sat, 21 April 2012 14:39 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
It has taken much longer than I anticipated, but I am happy to announce that there is now new "internet infrastructure" in the Core. New classes are:
Zlib - this provides zlib/gzip compression/decompression, the new feature provided by this class is that it supports "streaming" operations (e.g. file can be written by parts).
IpAddrInfo - this encapsulates getaddrinfo API (DNS resolution) and provides asynchronous operation (implemented using auxiliary threads).
TcpSocket - big news here is that "SSL" is just mode, not separate class. Also timeout issues are somewhat unified.
HttpRequest - compared to legacy HttpClient, it provides asynchronous mode of operations - it is now possible to e.g. perform multiple requests in single thread quite easily. Also it provides streaming support, e.g. when downloading file, it is now possible to save it directly to disk.
New features are demonstrated by reference/GuiWebCrawler and reference/GuiWebDownload.
Mirek
[Updated on: Sat, 21 April 2012 14:40] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Mon Apr 29 12:26:16 CEST 2024
Total time taken to generate the page: 0.02863 seconds
|