From: Александр М. <am...@ma...> - 2010-07-22 07:00:40
|
Thanks Michael, I hope that async client will be coming soon. Wed, 21 Jul 2010 22:16:53 +0800 письмо от Dean Michael Berris <mik...@gm...>: > > Hi Alex, I'm currently in the middle of a project that is requiring my 100% attention, so I may not be able to respond right away. I'll let the others on the list respond but I am working on an asynchronous client implementation. I'll say more when I'm at a full computer. Hope this helps. > > Sent from my Motorola Milestone > > On 21 Jul 2010 17:53, "Александр Мартынов" <am...@ma...> wrote: > > Hello! > > Sorry, I am not a developer, I am simply interesting on cpp-netlib library, but I was not found any support mailing list. > > My questions are: > 1) HTTP client and SSL. How I can compile client without HTTPS support (which adds dependency on openssl library). I try to define BOOST_NETWORK_NO_HTTPS, but it not work. I try to lookup in code for BOOST_NETWORK_NO_HTTPS or BOOST_NETWORK_HTTPS, but there is no occurences found. > Some https features found in boost\network\protocol\http\impl\sync_connection_base.hpp, but they are unconditional and can't be stripped. > > 2) cpp-netlib is hard C++ library, and I can't understand it. > I think that HTTP server (in sample) is serial (not a parallel) and handles requests consistently. Hard worker requests can easy get denial of service when incoming connection overfull connection accept queue. I am right? Is the way to make parallel server, which handles requess in different threads? > > 3) Is there way to stop client from other thread? > Such illustrated above: > -- worker thread -- > client.get(); // client.post() etc > ------------------- > > -- GUI thread -- > if (canceled && client.in_progress()) client.abort(); > ---------------- > > Or, may be there is the way to install callback which periodicaly receives client status events (such as "resolving", "connecting", "awaiting_reply") and can return value to signal that abort needed (true for continue, false to abort, as sample) > > Or, may be client can be used in async mode such here: > client.get(); > while( not canceled and client.in_progress() and not client.done()) {} > > 4) Is there the way to make secure (https) server? > > > Thank you for your attention, > Alex Martynov. > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Cpp-netlib-devel mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Cpp-netlib-devel mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel Alex Martynov |