Sockets Headers
I''m going insane looking for the sockets headers... The headers like netdb.h and sys/sockets.h were not included with either Dev-C++ or VC6, and google didn''t help at all... Anyone know a place to download them and the libraries?
On windows the header you want is: winsock2.h
If you''re talking about a form of linux then... you probably wouldn''t be using VC6![](wink.gif)
John B
If you''re talking about a form of linux then... you probably wouldn''t be using VC6
![](wink.gif)
John B
The best thing about the internet is the way people with no experience or qualifications can pretend to be completely superior to other people who have no experience or qualifications.
September 17, 2003 04:33 PM
I''m NOT looking for WinSock, because it''s a waste... Anyway, I''m just looking for the cross platform compatible sockets libraries, so if anyone knows, please tell me.
WinSock is what you''d need to use for "sockets for Windows." It''s relatively close to BSD sockets if you stick to the non-WSA prefixed functions (with a couple of notable, but obvious, exceptions). You''ll want to wrap WinSock and BSD sockets lightly to make their usage completely alike to the code using them.
If you want a true cross platform sockets ''wrapper'' library, look into libgnet, HawkNL, SDLnet, or something similar.
![](http://omapi.sourceforge.net/tmp/nvpf.png)
If you want a true cross platform sockets ''wrapper'' library, look into libgnet, HawkNL, SDLnet, or something similar.
![](http://omapi.sourceforge.net/tmp/nvpf.png)
Dammit... Oh well; I was hoping I would jsut have to write one version of each function in the classes I''m doing (they are wrapper classes). Thanks for the help. By the way, will the linux style sockets work on a Mac?
quote:
Original post by Puzzler183
By the way, will the linux style sockets work on a Mac?
If you don''t use any extensions to the BSD sockets (which are clearly marked in the man pages; I can''t recall needing to use any of them) the code should work just fine in both (although you may have to link to an additional library or something in MacOS X).
![](http://omapi.sourceforge.net/tmp/nvpf.png)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement