哪个功能是网络库包裹linux网络系统调用

时间:2016-02-18 14:07:00

标签: c linux network-programming system-calls

支持我们只考虑Linux平台。

由于系统调用可以提供epoll / select功能,为什么我们需要一个C网络库?

或换句话说,网络库提供的好处比直接使用系统调用更好。

1 个答案:

答案 0 :(得分:-1)

通常,库包含代码调用的函数的代码。

所以要真正执行这些功能:

1) the appropriate header file must be #include'd in the source file
2) the linker must be given the location/name of the library that contains the functions.
3) without the library, the actual code is not available
相关问题