现在的位置: 首页 > 综合 > 正文

socket()参数中的地址族、套接字类型、协议号的取值

2013年06月02日 ⁄ 综合 ⁄ 共 260字 ⁄ 字号 评论关闭
int socket(int domain, int type, int protocol);

1、domain(地址族)和 type(套接字类型)的取值可以见 man socket

2、关于 protocol(协议号)的取值可以见 netinet/in.h(可以结合 /etc/protocols
看)

也可以看这里:socket()--Create Socket, http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Fapis%2Fsocket.htm

抱歉!评论已关闭.