Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a popular, multi-platform, free and open source socket library [closed]

Tags:

c++

c

sockets

Is there any free open source library (in C/C++) for sockets that is widely used and supports wide range of operating systems (Windows, Unix/Linux, FreeBSD etc). Just like pthreads.

Otherwise the only solution left would be to write socket wrapper for each operating system. Or would writing a wrapper against winsock and GNU C sys/socket.h libraries would be enough?

Wouldn't it be possible that I implement it against the socket library provided with GNU C. GNU C is available for wide range of platforms and my code will work in all those platforms?

like image 261
ata Avatar asked Oct 19 '09 06:10

ata


People also ask

What are open source libraries?

An open source library is any library with an open source license, which denotes software that is free to reuse, modify, and/or publish without permission.

What is a socket library?

A socket library is a library that implements sockets so that you can use them in your program for Internet communication.

What are the two types of sockets?

Sockets come in two basic types—connection-oriented and connectionless.


2 Answers

Consider looking at boost?

like image 161
carl Avatar answered Nov 15 '22 19:11

carl


QT if it isn't too big for you. Boost has some network code as well. wxWidgets has with wxNet a network library as well. Another lib is Clanlib. And of course SDL

like image 30
Tobias Langner Avatar answered Nov 15 '22 19:11

Tobias Langner