登录
首页 » C/C++ » 新建文件夹

新建文件夹

于 2020-11-28 发布
0 120
下载积分: 1 下载次数: 0

代码说明:

说明:  ◎ 为所有socket函数调用添加错误处理代码; ◎ 范例中服务器地址和端口是固定值,请你将它们改成——允许用户以参数形式从命令行输入; ◎ 范例中客户机发送的是固定文本”Hello Network!”,请改成——允许用户输入字符串,按回车发送;实现循环,直至客户机输入“bye”退出; ◎ 服务器迭代地处理客户机:一个客户机退出后、才接受下一个,按Ctrl+C可以终止服务器程序。(Add error handling code for all socket function calls; In the example, the server address and port are fixed values. Please change them to - allow users to input from the command line in the form of parameters; In the example, the client sends the fixed text "Hello network!", please change it to -- allow the user to input the string and press enter to send; realize the loop until the client enters "Bye" to exit; Server processes clients iteratively: one client exits before accepting the next. Press Ctrl + C to terminate the server program.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696524资源总数
  • 103938会员总数
  • 55今日下载