分类: LINUX
2008-11-20 14:51:38
chinaunix网友2009-05-21 14:36:51
socket 创建时要关联一个inode socket绑定地址的时候又要创建一个inode 和unix_socket关联 我理解的是否正确
smallchilli2009-04-14 20:57:21
你很厉害,但是这个地方你搞错了,server_address.sin_port = 9734使用的不是9734端口,如果要用9734端口需要使用server_address.sin_port =htons(9734)才可以.大端小端。。。
chinaunix网友2009-02-20 11:20:30
请问下楼主,从close(fd)调用到sock_close(),这两个函数的参数不一致阿?sock_close()中的file *filp是什么?从哪里传过来的?谢谢!·
hjiaqig2009-02-18 16:27:44
/** * container_of - cast a member of a structure out to the containing structure * @ptr: the pointer to the member. * @type: the type of the container struct this is embedded in. * @member: the name of the member within the struct. * */ #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) #define container_of(ptr, type, member) ({ \ const typeof( ((type *)0)->member ) *__mptr = (ptr); \ (type *)( (char *)__mptr - offsetof(type,