Which library(s) do you recommend for tcp/ip or socket stuff?

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jan 2005
Posts: 70
Reputation: Diode is on a distinguished road 
Solved Threads: 0
Diode's Avatar
Diode Diode is offline Offline
Junior Poster in Training

Which library(s) do you recommend for tcp/ip or socket stuff?

 
0
  #1
Mar 23rd, 2008
I don't know about C, but I read that C++ doesn't have any "standard" library for networking stuff. I was wondering which libraries for C were more popular or higher acclaimed. And who better to ask than the experts themselves?

Many thanks in advance
diode
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,442
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1474
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Which library(s) do you recommend for tcp/ip or socket stuff?

 
0
  #2
Mar 23rd, 2008
The libraries depends on the operating system which is why neither c nor c++ supports TCP/IP and networks directly. For MS-Windows just use win32 api functions found in winsock.h, which is pretty compatible with Berkley Sockets standard.

I don't know if there is a platform-independent socket library, but I suppose anything can happen.

There are probably many free socket libraries on the new, one of them is here.
Last edited by Ancient Dragon; Mar 23rd, 2008 at 7:16 am.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 70
Reputation: Diode is on a distinguished road 
Solved Threads: 0
Diode's Avatar
Diode Diode is offline Offline
Junior Poster in Training

Re: Which library(s) do you recommend for tcp/ip or socket stuff?

 
0
  #3
Mar 23rd, 2008
As for platform, the one I am presently concerned with is UNIX/Linux. I have found out that the GNU C LIbrary contains a library for dealing with sockets.

To quote from the link I am providing as a reference to those who would be interested in the subject,
Not all operating systems support sockets. In the GNU library, the header file `sys/socket.h' exists regardless of the operating system, and the socket functions always exist, but if the system does not really support sockets, these functions always fail.
This is a very good article. I highly recommend it even if one is using another platform.
http://www.cs.utah.edu/dept/old/texi...ibrary_15.html

Thanks,
diode
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC