471,612 Members | 1,934 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,612 software developers and data experts.

Internet related libraries

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?

Jul 22 '05 #1
5 1558
Cecil Westerhoff wrote:
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

Jul 22 '05 #2
Try the Boost libraries at www.boost.org. They have libraries that
span all kinds of topics.

Sandeep
--
http://www.EventHelix.com/EventStudio
EventStudio 2.0 - System Architecture Design CASE Tool
Jul 22 '05 #3
"Cecil Westerhoff" <cw******@wanadoo.nl> writes:
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.).
--
Roger Leigh

Printing on GNU/Linux? http://gimp-print.sourceforge.net/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
Jul 22 '05 #4
> "Cecil Westerhoff" <cw******@wanadoo.nl> writes:
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?


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.
Jul 22 '05 #5
On Wed, 24 Dec 2003 07:25:13 -0800, Eric Nicolas wrote:
"Cecil Westerhoff" <cw******@wanadoo.nl> writes:
> 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?

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.

Jul 22 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by punkstar | last post: by
2 posts views Thread by Jeroen Timmers | last post: by
1 post views Thread by jeffreykr | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.