摘要:
socket 编写客户端与服务端代码 客户端代码 /** * 客户端代码,每次将写入服务端的数据再读回来,利用 read 以及 write 函数完成 socket 读写 */ #include <iostream> #include <unistd.h> #include <cstring> #in 阅读全文
posted @ 2021-04-21 20:29
witchers
阅读(75)
评论(0)
推荐(0)
摘要:
//服务端代码 #include <iostream> #include <unistd.h> #include <cstring> #include <arpa/inet.h> #include <sys/socket.h> using namespace std; int main(int ar 阅读全文
posted @ 2021-04-21 16:21
witchers
阅读(31)
评论(0)
推荐(0)
浙公网安备 33010602011771号