From: Александр М. <am...@ma...> - 2010-07-21 09:53:26
|
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. |
From: Dean M. B. <mik...@gm...> - 2010-07-21 14:17:03
|
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 |
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 |
From: Glyn M. <gly...@gm...> - 2010-07-22 13:54:28
|
Hello Alex, 2010/7/21 Александр Мартынов <am...@ma...> > 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. > What version of cpp-netlib are you using? There was a discussion about this a month and a half ago and the decision was to define a macro BOOST_NETWORK_ENABLE_HTTPS in order to explicitly opt-in to using SSL. However, this has not yet been implemented. It is not possible to compile the HTTP client without SSL in the current release (0.6). http://www.mail-archive.com/cpp...@li.../msg00443.html > > 2) cpp-netlib is hard C++ library, and I can't understand it. > The internal details can be quite obscure, but it is a stated goal that using the library should not be hard to do. Admittedly, the documentation is still incomplete but I am making an effort to make it more accessible. If you have anything specific you want addressed, please let me know and I will try to deal with 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? > I think you're right. The HTTP server provided is very simple, but eventually cpp-netlib ought to provide the building blocks for more complex servers. I know Dean has more ideas on this, he could let you know more about his plans. > > 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()) {} As Dean already mentioned, he is working on an asynchronous HTTP client so I will leave it to him to respond more fully to this. > 4) Is there the way to make secure (https) server? > > Yes, but as with (2) it's simply a matter of implementing it. Regards, Glyn |
From: Александр М. <am...@ma...> - 2010-07-24 07:27:01
|
Hello Glyn, Thursday, July 22, 2010, 5:54:20 PM, you wrote: GM> Hello Alex, GM> 2010/7/21 Александр Мартынов <am...@ma...> GM> Hello! GM> Sorry, I am not a developer, I am simply interesting on GM> cpp-netlib library, but I was not found any support mailing list. GM> My questions are: GM> 1) HTTP client and SSL. How I can compile client without HTTPS GM> support (which adds dependency on openssl library). I try to GM> define BOOST_NETWORK_NO_HTTPS, but it not work. I try to lookup in GM> code for BOOST_NETWORK_NO_HTTPS or BOOST_NETWORK_HTTPS, but there is no occurences found. GM> Some https features found in GM> boost\network\protocol\http\impl\sync_connection_base.hpp, but GM> they are unconditional and can't be stripped. GM> What version of cpp-netlib are you using? There was a discussion GM> about this a month and a half ago and the decision was to define a GM> macro BOOST_NETWORK_ENABLE_HTTPS in order to explicitly opt-in to GM> using SSL. However, this has not yet been implemented. It is not GM> possible to compile the HTTP client without SSL in the current release (0.6). GM> http://www.mail-archive.com/cpp...@li.../msg00443.html I am using version 0.5 of cpp-netlib. I was read that discussion, but wasn't understand is that implemented or not. I think this point is important to implement - library will be more lightweight when external dependecies will be removed. GM> 2) cpp-netlib is hard C++ library, and I can't understand it. GM> The internal details can be quite obscure, but it is a stated GM> goal that using the library should not be hard to do. Admittedly, GM> the documentation is still incomplete but I am making an effort to GM> make it more accessible. If you have anything specific you want GM> addressed, please let me know and I will try to deal with it. GM> GM> I think that HTTP server (in sample) is serial (not a parallel) GM> and handles requests consistently. Hard worker requests can easy GM> get denial of service when incoming connection overfull connection GM> accept queue. I am right? Is the way to make parallel server, GM> which handles requess in different threads? GM> I think you're right. The HTTP server provided is very simple, GM> but eventually cpp-netlib ought to provide the building blocks for GM> more complex servers. I know Dean has more ideas on this, he GM> could let you know more about his plans. Usage is quite simple, if that described in documentation ;) But its much incomplete, and research for details is difficult. Alex Martynov |