Internet related libraries

C

Cecil Westerhoff

I just started with programming under linux with c++. I have programmed
for years with Borland C++ Builder. So I have some experience. But I can
not find the libraries for intenet stuff. (Ping, fetching a page, etc.)
The only thing I found was a library for CGI. Can someone tell me where to
find those libraries? Or for that mather where to look for libraries in
general?
 
J

Jeff Schwab

Cecil said:
I just started with programming under linux with c++. I have programmed
for years with Borland C++ Builder. So I have some experience. But I can
not find the libraries for intenet stuff. (Ping, fetching a page, etc.)
The only thing I found was a library for CGI. Can someone tell me where to
find those libraries? Or for that mather where to look for libraries in
general?

Such libraries may not have come with your system. I've always been
able to find what I needed by Googling, but definitely try posting in
comp.os.linux.development.apps. Anyway, remember that you have the
source to your whole OS, and if you stick with open source software,
that will continue to be true. That means that if you want source code
to do something like what /bin/ping does, you can actually look at the
source for /bin/ping, and copy the parts you want until your heart is
content. One note of caution: Be sure you understand GPL and LGPL.
Again, the linux newsgroups should be able to help more than I can.

-Jeff
 
R

Roger Leigh

Cecil Westerhoff said:
I just started with programming under linux with c++. I have programmed
for years with Borland C++ Builder. So I have some experience. But I can
not find the libraries for intenet stuff. (Ping, fetching a page, etc.)
The only thing I found was a library for CGI. Can someone tell me where to
find those libraries? Or for that mather where to look for libraries in
general?

Firstly, try asking on comp.os.linux.development.apps. We're a
friendly bunch :)


Secondly, for basic networking you don't need anything more
sopisticated than the C Standard Library (GNU libc), which includes
the POSIX/Single UNIX networking system calls. See
<URL:http://www.unix.org/version3/online.html> for more details. Have
a look at connect(), socket() etc. in the "System Interfaces" section.


This quick search shows some of the C++ networking libraries in
Debian:

$ apt-cache search net | grep -i "C++"
[irrelevent packages snipped]
libace-dev - An Object-Oriented Network Programming Toolkit in C++
libace5.3.1 - An Object-Oriented Network Programming Toolkit in C++
libcapsinetwork-dev - C++ network server library, development files
libcapsinetwork0 - C++ network server library
libccrtp-dev - Common C++ class framework for RTP packets
libccrtp1-1.0-0c102 - Common C++ class framework for RTP packets
libcommoncpp2-1.0-0c102 - A GNU package for creating portable C++ programs
libcommoncpp2-dev - Header files and static libraries for Common C++ "2"
libicq2000 - An ICQ2000/2001 C++ library
libicq2000-dev - An ICQ2000/2001 C++ library - development files
libicq2000-doc - An ICQ2000/2001 C++ library - documentation
libpbd0 - Library of useful, generic C++ objects
libwvstreams3 - C++ network libraries for rapid application development
libwvstreams3-base - C++ network libraries for rapid application development
libyehia0.5-0 - Yehia - A C++ application framework - runtime
libyehia0.5-dev - Yehia - A C++ application framework - development


Lastly, as others have already mentioned, the source for all of the
networking tools is available (with certain restrictions--read the
licences carefully!). You'll learn a lot by reading code. Start by
looking at the "iputils" source package (ping etc.).
 
E

Eric Nicolas

If you are the "DIY" kind of guy, you at least need some kind of C++
abstraction of the networking layers for your operating system. I can
recommend Boost or CommonC++ or (better) A.C.E.

Now if you want to do internet page fetching and stuff very quickly,
then the answer is of course CURL.

(Just use Google to find URLs for those libraries).

Eric.
 
C

Cecil Westerhoff

If you are the "DIY" kind of guy, you at least need some kind of C++
abstraction of the networking layers for your operating system. I can
recommend Boost or CommonC++ or (better) A.C.E.

I allready tried boost, but as far as I could see this did not had what I
needed. I will look at the other two.

Now if you want to do internet page fetching and stuff very quickly,
then the answer is of course CURL.

This looks just as what I need. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,156
Messages
2,570,878
Members
47,413
Latest member
KeiraLight

Latest Threads

Top