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-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 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 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