4.1 基本函数 socket函数 #include <sys/socket.h> int socket(int family, int type, int protocol);/* 返回:若成功则为非负描述符,若出错则为-1 */ connect函数 #include <sys/s……