编写一个客户机——服务器程序,其中客户机使用六套接字向服务器请求日期和时间,服务器在收到请求后,回答请求并显示出客户的地址。
编写一个客户机——服务器程序,其中客户机使用六套接字向服务器请求日期和时间,服务器在收到请求后,回答请求并显示出客户的地址。
你看下linux下面的网络通信 做两个程序 一个服务端 一个客户端 服务端监听8080端口 然后 客户端可以连接指定IP的指定端口 发送字符 然后 服务端可以显示客户端发送的字符
和linux TCP transfer string 一样 只是现在client 可以随意指定连接的端口 运行 client时候 要输入 ./client 8080时候 服务器有输出 其他端口会连接错误
Contributions last year: 0
Max continuous contributions: 0
Recent contributions: 0
Commits, issues, and pull requests will appear on your contribution graph. Only when the email address used for the commits in local configuration is associated with your GitOSC account, the commits' contribution will be counted.