Proper way to implement a Direct Connect client in Twisted?
问题 I'm working on writing a Python client for Direct Connect P2P networks. Essentially, it works by connecting to a central server, and responding to other users who are searching for files. Occasionally, another client will ask us to connect to them, and they might begin downloading a file from us. This is a direct connection to the other client, and doesn't go through the central server. What is the best way to handle these connections to other clients? I'm currently using one Twisted reactor