UNIX(網絡編程-基本用法):04---socket、bind、connect、listen、accept、close

 一、socket()函數 #include<sys/types.h> #include<sys/socket.h> int socket(int protofamily, int type, int protocol);  參數1:即協議域,又稱爲協議族(family) 域參數指定通信域;這將選擇用於通信的協議系列。這些族在<sys/socket.h>中定義 AF_INET 用ipv4地址(32
相關文章
相關標籤/搜索