这是在s_ =::socket(家族,类型为0)处失败的函数。// Creates the underlying OS socket (same as the "socket" function).virtual bool Create(int family, int type) { s_ = ::socket(family, type, 0); }
家庭值为2,类型为1。S_
例如(大多数函数都是这样设置的)socket/bind.c的源代码是: 20 #include <sys/socket.h> 22 /* Give the socket FD the local address ADDR (which is LEN bytes long). */ 24 __bind (fd,