Jump to content

C++ Sockets

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
AuraDevil

AuraDevil

    Newbie

  • Members
  • Pip
  • 5 posts
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?

#2
Crane

Crane

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 398 posts
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."

#3
AuraDevil

AuraDevil

    Newbie

  • Members
  • Pip
  • 5 posts

Crane said:

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 =]

#4
Kirienko

Kirienko

    Newbie

  • Members
  • Pip
  • 1 posts
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!!