curl-library
Re: Using libcurl on Digi NET+OS
Date: Sun, 18 Jul 2010 00:04:18 +0200 (CEST)
On Sat, 17 Jul 2010, Matt Olcikas wrote:
> 1. Is libcurl the right library for me to use?
This might not be the right group to ask to get an objective answer to this
question, but yes I would say it is!
> 2. What steps do I need to follow to add libcurl to my project? I know it's
> a stupid questions but I can't find any documentation on this.
I figure you don't use configure to build a cross-compiled version?
Then I would probably recommend the symbian, vxworks and win32ce way: create a
lib/config-diginetos.h file and populate it accordingly. I figure you can
start by copy the entire contents from one of the other files that you think
could be fairly similar, and then adjust all the #defines until yout think
it's good.
Then run make, alter the #defines, run make again until things work. Most
likely you will also end up finding some quirks and details in the source code
that you need to chang to work correctly with your OS and TCP/IP stack.
If you just make your changes carefully and use curl style in code etc, and
send them over to us once you've got them work, then we'll be very intrested
in merging those changes back into the mainline code and voila, you'll be able
to upgrade to future versions with ease later on...
> 3. About how long will it take to get libcurl to working with my project?
It depends entirely on your skill and the exact capabilities of your
environment. Assuming everything is fine and dandy, you could do it in a day.
I would however expect at least a small set of quirks and problems that will
add to that ideal time.
> 4. Are there any gotchas I should know about before undertaking this?
I'd say the most unfortunate situation is that the test suite pretty much only
runs on unix so you won't be able to run your newly ported lib through that!
Good luck! And don't hesitate to ask us if there are specific details or
problems that you run into.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-07-18