473,240 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,240 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 1661
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Neo | last post by:
I have a usercontrol that I am trying to use as an ActiveX Control on a WebPage, however it refereneces an Assembly that whenever the first call is made to anything in the Assembly a Security...
11
by: TC | last post by:
Hello All, I have recently had the pleasure of installing Norton Internet Security 2005 and finding that I can no longer create or open a web-based application in Visual Studio .Net. The IDE...
4
by: punkstar | last post by:
Hi there. I am just starting out with C++ as a programming language.. and I am wondering if there is any complete reference to that language and its functions anywhere on the internet. What I am...
3
by: VK | last post by:
Internet Explorer 7 beta 2 preview CNET Editor review: <http://reviews.cnet.com/Internet_Explorer_7_for_XP_SP2_Beta_2/4505-3514_7-31454661-2.html?tag=nl.e415> Summary (my personal review...
2
by: Jeroen Timmers | last post by:
I want to load an image from internet and put this image in a TImage. When i used c# i have an open webstream. Now i am new in this language and i could not find the correct stream. thx
7
by: Steve | last post by:
Hello, I am a beginner/intermediate c++ coder. I have a program that I am writing and would like to be able to distribute to some of my friends. The problem with this is that the data files...
1
by: jeffreykr | last post by:
hi, i am trying to this from portable code. ie, i have seen how to check for a live connection from .NET but i'm not using those libraries. any other way to check for a live internet connection...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.