如何解决如何将扭曲的聊天链接到github网站?
我与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 举报,一经查实,本站将立刻删除。