请参考下面资料,有你想要的答案:http://cnsnap.cn.freebsd.org/doc/zh_CN.GB2312/books/developers-handbook/sockets-essential-functions.html