猜socklen_t的原型

编写tcp时碰到这个类型,感觉他就是int型。

百度了一下: typedef int socklen_t

                      typedef int ssize_t

我去/usr/include 下grep -r socklen_t * | grep typedef。

只看到了typedef __socklen_t socklen_t;

再接这去找__socklen_t,就看到了__STD_TYPE __U32_TYPE __socklen_t。

我无法告诉自己我看到了socklen_t的准确定义。奇怪了

 

posted on 2013-09-12 00:16  hrbust_09zhangyabin  阅读(470)  评论(0编辑  收藏  举报