在SOL_SOCKET用getsockopt() [英] SOL_SOCKET in getsockopt()

查看:259
本文介绍了在SOL_SOCKET用getsockopt()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为Linux手册页说:使用此常量作为水平参数的getsockopt或setsockopt的操作在本节所述的插座级选项。我仍然不知道是什么意思SOL_SOCKET,它有什么作用?

As says in linux man page "Use this constant as the level argument to getsockopt or setsockopt to manipulate the socket-level options described in this section." I still don't know what does SOL_SOCKET mean, what does it do?

推荐答案

SOL_SOCKET是套接字层本身。用于那些协议无关的选项。

SOL_SOCKET is the socket layer itself. Used for options that are protocol independent.

您可以在这里阅读更多: http://www.delorie.com/ GNU /文档/ glibc的/ libc_352.html

You can read more here: http://www.delorie.com/gnu/docs/glibc/libc_352.html

这篇关于在SOL_SOCKET用getsockopt()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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