TCP網絡編程流程及Socket API基本用法

  Socket API基本用法 socket函數  int socket(int domain, int type, intprotocol);  包含頭文件<sys/socket.h> 作用:創建一個套接字用於通信domain:AF_INET(ipv4)   AF_INET6(ipv6) type:        SOCK_STREAM(tcp)    SOCK_DGRAM(udp) intp
相關文章
相關標籤/搜索