Re: Any tips or documentation for writing a new Curl_handler (protocol)?

2018-07-12 Thread Dan Fandrich
On Thu, Jul 12, 2018 at 10:18:57AM +0100, Richard W.M. Jones wrote: > We already use libcurl in qemu for read/write access to remote disk > images. So there's a proof of existence that it's possible. I don't doubt it's possible; even telnet is possible to shoehorn into libcurl. I'm just not convi

Re: Any tips or documentation for writing a new Curl_handler (protocol)?

2018-07-12 Thread Richard W.M. Jones
On Wed, Jul 11, 2018 at 02:48:57PM +0200, Dan Fandrich wrote: > On Wed, Jul 11, 2018 at 12:18:39PM +0100, Richard W.M. Jones wrote: > > Personally, I'm not entirely sure that libcurl really maps well to NBD, > > tbh, since NBD is not a "one request per URL" protocol like most other > > libcurl-supp

Re: Any tips or documentation for writing a new Curl_handler (protocol)?

2018-07-11 Thread Daniel Stenberg
On Wed, 11 Jul 2018, Wouter Verhelst wrote: I have done some (minimal) work with the libcurl API in the past though, and even there I think the more common case is "give libcurl a URL, give it a callback, tell it to have fun". I'm not sure that's the best way forward for an NBD client-side lib

Re: Any tips or documentation for writing a new Curl_handler (protocol)?

2018-07-11 Thread Dan Fandrich
On Wed, Jul 11, 2018 at 12:18:39PM +0100, Richard W.M. Jones wrote: > Personally, I'm not entirely sure that libcurl really maps well to NBD, > tbh, since NBD is not a "one request per URL" protocol like most other > libcurl-supported protocols currently are (at least for the most part). I'd have

Re: Any tips or documentation for writing a new Curl_handler (protocol)?

2018-07-11 Thread Richard W.M. Jones
On Wed, Jul 11, 2018 at 02:09:02PM +0200, Wouter Verhelst wrote: > Hi all, > > On Wed, Jul 11, 2018 at 12:18:39PM +0100, Richard W.M. Jones wrote: > > [Adding NBD mailing list to CC] > > > > On Wed, Jul 11, 2018 at 08:43:24AM +0200, Daniel Stenberg wrote: > > > On Tue, 10 Jul 2018, Richard W.M. J

Re: Any tips or documentation for writing a new Curl_handler (protocol)?

2018-07-11 Thread Richard W.M. Jones
[Adding NBD mailing list to CC] On Wed, Jul 11, 2018 at 08:43:24AM +0200, Daniel Stenberg wrote: > On Tue, 10 Jul 2018, Richard W.M. Jones wrote: > > >I was wondering if you have any documentation, or general tips, > >for writing a new handler? I was thinking of implementing an NBD > >(Network B

Re: Any tips or documentation for writing a new Curl_handler (protocol)?

2018-07-10 Thread Daniel Stenberg
On Tue, 10 Jul 2018, Richard W.M. Jones wrote: I was wondering if you have any documentation, or general tips, for writing a new handler? I was thinking of implementing an NBD (Network Block Device) client. I'm afraid we don't have much docs for that! :-( I suppose mostly because it doesn't