| | |
Which library(s) do you recommend for tcp/ip or socket stuff?
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
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.
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.
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, 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
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.
http://www.cs.utah.edu/dept/old/texi...ibrary_15.html
Thanks,
diode
![]() |
Other Threads in the C Forum
- Previous Thread: read_file and use_data
- Next Thread: Combinations of a string using Recursion(Modified Version)
| Thread Tools | Search this Thread |
adobe api array arrays bash binarysearch calculate char cm convert copyanyfile copypdffile cprogramme createcopyoffile createprocess() csyntax directory dynamic feet fflush file floatingpointvalidation fork forloop frequency getlasterror givemetehcodez global graphics gtkgcurlcompiling hacking hardware highest homework i/o inches incrementoperators initialization intmain() iso km linked linkedlist linux linuxsegmentationfault list locate logical_drives loopinsideloop. match matrix microsoft motherboard mqqueue multi mysql oddnumber odf open opendocumentformat opensource openwebfoundation pattern pdf performance pointer pointers posix power program programming pyramidusingturboccodes read recursion recv recvblocked repetition scanf scheduling scripting segmentationfault send shape socketprograming socketprogramming stack standard strchr string strings suggestions test testautomation unix urboc user variable voidmain() win32api windows.h






