Python: Socket and threads?

前端 未结 4 791
情书的邮戳
情书的邮戳 2020-12-10 04:43

I have a design problem:

I have two threads, a heartbeat/control thread and a messagehandler thread.

Both are sharing the same socket, however the messageHan

4条回答
  •  Happy的楠姐
    2020-12-10 04:54

    If both threads are client threads, it is a good idea to open two client sockets one to the server for heart beat and another for communication.

提交回复
热议问题