一、tcp编程

(1)tcp服务器流程

Chapter23 python进阶——TCP编程

Chapter23 python进阶——TCP编程

 

 

(2)一对一:

Chapter23 python进阶——TCP编程

Chapter23 python进阶——TCP编程

 

(3)一对多(用多进程或多线程)

①如果不用多进程或多线程,当然可以用单进程服务器

Chapter23 python进阶——TCP编程

②单进程服务器-select版

Chapter23 python进阶——TCP编程

Chapter23 python进阶——TCP编程

③单进程服务器——epoll版

epoll方法只能在linux下使用

Chapter23 python进阶——TCP编程

Chapter23 python进阶——TCP编程

Chapter23 python进阶——TCP编程

 

相关文章:

  • 2021-10-07
  • 2021-04-25
  • 2021-05-04
  • 2022-01-19
  • 2021-04-03
  • 2021-08-09
  • 2018-09-04
  • 2019-02-10
猜你喜欢
  • 2019-10-10
  • 2021-11-27
  • 2022-01-13
  • 2021-10-06
  • 2021-11-21
  • 2021-10-07
  • 2021-12-04
相关资源
相似解决方案