[Gambas-devel] About 0.83 and net

danielcampos at ...45... danielcampos at ...45...
Mon Feb 9 08:59:54 CET 2004


Hi all:

 First of all I'll try to explain again, and more
clearly, the changes in the 'net' component:

1) I've removed HttpClient from the old 'net' component,
that now, has the following classes: Socket, UdpSocket,
ServerSocket, SerialPort, Net and DnsClient. This class
called just 'net', and placed at '{sources}/src/lib/net'
does not need libcurl at all, so it can be compiled
without problems even if you have not installed libcurl
in your computer.

2) there's a new class called 'net.curl', actually for
HttpClient class. I need libcurl because protocols like
Http or Ftp are to wide to be implemented in a decent
time, specially when using proxies, authentication support 
and ssl. i need also a recent version of libcurl, as
the things I need have been implemented few time ago
in libcurl.

3) If you can compile gambas in your computer, it is
sure you can also compile libcurl, download the source
package from http:/curl.haxx.se, and build it as usual:

./configure --prefix=/usr ' (or another valid prefix)
make
make install 

4) If you just don't want to use HttpClient, try this:

go to {sources} folder, and edit configure.in, and look for
this:

GB_COMPONENT(
  curl,
  CURL,
  [Advanced Networking component],
  [GB_FIND(curl.h, `curl-config --prefix 2> /dev/null`, include)],
  [GB_FIND(libcurl.$SHLIBEXT, `curl-config --prefix 2> /dev/null`, lib)],
  [$C_LIB `curl-config --libs 2> /dev/null`])

And remove all these lines, then look for:

src/lib/net/curl/Makefile \

And remove it.

After that, go to {sources}/src/lib/net, and then edit Makefile.am,
look for this:

SUBDIRS = curl 

And remove that line.

Go to {sources}, type :

./reconf
./configure (with your options)
make
make install

And that's all.

5) Finally, it is true that it should be nice to create all network
stuff using just Unix libraries, but it also would be nice to write
the graphical part without using QT, just Xlibraries, or even writting
our own graphical drivers:-), what I mean is that now, a new library is needed to compile all gambas stuff (as the graphical part, postgres and MySQL drivers, etc), and so, I encourage you to install it from sources , as I've selected LibCurl instead of other network libraries as it can be compiled on Linux, FreeBSD, NetBSD, Windows, OS/2,etc, and it is
absolutely free even for non GPL programs. What more do you want? free, cheap and beautiful, The only problem is that I need a recent version,
as old versions of libcurl lack autherntication support, proxy support, etc. So, finally, help me a little, using that new library, it will be good for Gambas, at least this is the idea. 


-------------------------------------------------------------
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,16 € TTC/min)





More information about the Devel mailing list