问题描述
我与python进行了基于TCP的扭曲聊天。我在本地主机上进行了所有测试。
class Protocol(twisted.protocols.basic.LineReceiver):
def connectionMade(self):
self.host = self.transport.getPeer().host
print(self.host)
class Factory(twisted.internet.protocol.Factory):
protocol = Protocol
factory = Factory()
twisted.internet.reactor.listenTCP(8000,factory)
twisted.internet.reactor.run()
现在,我想将其放到网上,以便具有Internet连接的任何人都可以使用客户端。我首先制作了github页面(该页面名为username.github.io),如何将网页链接到实际的python聊天服务器?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)