摘要: TCP/IP和网络编程 13.1 网络编程简介 Linux网络编程是指在Linux操作系统环境下进行网络应用程序的开发。这种类型的编程通常涉及使用套接字(sockets)API,该API允许程序通过网络进行通信。 13.2 套接字 套接字是网络编程的基本构建块。套接字是一种通信机制,通过套接字,程序 阅读全文
posted @ 2023-11-24 15:41 20211115fyq 阅读(25) 评论(0) 推荐(0)
摘要: 代码 TCPserver.c 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #include <sys/socket.h> 5 #include <netdb.h> 6 #include <arpa/inet.h 阅读全文
posted @ 2023-11-24 15:40 20211115fyq 阅读(23) 评论(0) 推荐(0)