Can python asyncore module handle/connect more than one socket?

311 views Asked by At

I have a class that implements the asyncore module, it serves as a client that connects to HOST_A. The problem is I need to pass the data received from HOST_A to a HOST_B. So i'm wondering if asyncore can create two socket connections to HOST_A and HOST_B.Is this possible?

1

There are 1 answers

0
Theolodis On

You can make one connection per socket at the same time only. But this doesn't mean that you can't do what you want to, however you'll need 2 sockets for 2 connections.