Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

C++ Sockets


  • Please log in to reply
3 replies to this topic

#1 AuraDevil

AuraDevil

    CC Lurker

  • Just Joined
  • Pip
  • 5 posts

Posted 07 October 2007 - 11:14 AM

Okay, so im big on the topic of Sockets in all languages. And as im learning c++ im interested to learn how to use sockets on both the windows and *nix platform. I am aware of winsock on windows, but what options are avaliable under *nix that are cross platform? Are there any options?
  • 0

#2 Crane

Crane

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 388 posts

Posted 07 October 2007 - 12:57 PM

You can use the berkeley sockets C API which cross platform to most Unix Systems and Windows. Here is a wrapper for it C++ Sockets Library: Unix & Windows networking made easy

"This is a GPL licensed C++ class library wrapping the berkeley sockets C API, and therefore works on most unixes and also win32. The library is in use in a number of real world applications, both commercial and open source.

Features include, but are not limited to, SSL support, IPv6 support, tcp and udp sockets, sctp sockets, http protocol, highly customizable error handling. Testing has been done on Linux and Windows 2000, and to some part on Solaris and Mac OS X."
  • 0

#3 AuraDevil

AuraDevil

    CC Lurker

  • Just Joined
  • Pip
  • 5 posts

Posted 07 October 2007 - 12:59 PM

You can use the berkeley sockets C API which cross platform to most Unix Systems and Windows. Here is a wrapper for it C++ Sockets Library: Unix & Windows networking made easy

"This is a GPL licensed C++ class library wrapping the berkeley sockets C API, and therefore works on most unixes and also win32. The library is in use in a number of real world applications, both commercial and open source.

Features include, but are not limited to, SSL support, IPv6 support, tcp and udp sockets, sctp sockets, http protocol, highly customizable error handling. Testing has been done on Linux and Windows 2000, and to some part on Solaris and Mac OS X."


Sounds pretty much perfect for what im aiming at, thanks alot =]
  • 0

#4 Kirienko

Kirienko

    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 15 April 2010 - 04:58 AM

You could use NetLink Sockets C++ lib. It is multi-platform and supports both IP4 and IP6. This lib is very easy to use and you can find code examples in its website.

SourceForge.net: Project netlinksockets

NetLink Sockets C++ Library | Get NetLink Sockets C++ Library at SourceForge.net

Hope it will be usefull!!
  • 0




Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download