什么是流行的,多平台,自由和开放源码套接字库 [英] What is a popular, multi-platform, free and open source socket library

查看:170
本文介绍了什么是流行的,多平台,自由和开放源码套接字库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有被广泛应用,并支持多种操作系统(Windows,Unix / Linux操作系统,FreeBSD下等)的任何免费的开源库(在C / C ++)套接字。就像pthreads的。

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.

否则离开是写插座包装为每个操作系统的解决方案。还是会写反对Winsock和GNU C SYS包装/ socket.h中图书馆就足够了?

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?

那岂不是很可能的,我实现它针对配备GNU C. GNU C套接字库可用于广泛的平台和我的code将在所有这些平台上运行?

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?

推荐答案

我相信无论是 Apache的便携式运行和GTK +的 GLib的图书馆有插座的API。由于您的问题是标记 C C ++ 我怀疑你真正想要的C ++ - 中心的答案,但是这两个都不错作为纯粹的C库。

I believe both the Apache Portable Runtime and GTK+'s GLib libraries have socket APIs. Since your question is tagged c and c++ I suspect you really want C++-centric answers, but both of these are good as pure C libraries.

这篇关于什么是流行的,多平台,自由和开放源码套接字库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆