wangfeng3769
V2EX  ›  问与答

想用 pyqt 弄一个局域网聊天工具

  •  
  •   wangfeng3769 · Jul 22, 2014 · 3077 views
    This topic created in 4398 days ago, the information mentioned may be changed or developed.
    如题初步想法一台服务器,其他机器和服务器相连,然后服务器获得局域网的ip,然后将ip发往不同的主机.接下来的通信是通过服务器转发好呢?还是主机之间直接通信好呢?痛信准备用socket,有什么好的建议欢迎提呀!
    6 replies    2014-07-25 17:26:45 +08:00
    liwei
        1
    liwei  
       Jul 22, 2014
    飞鸽传书不行么?
    wangfeng3769
        2
    wangfeng3769  
    OP
       Jul 22, 2014
    @liwei 想练练手呀?
    izoabr
        3
    izoabr  
       Jul 22, 2014 via iPad
    挺好,或者用广播,不用服务器
    lcj2class
        4
    lcj2class  
       Jul 22, 2014
    Server:
    nc -lp 端口

    Client:
    nc ServerIP 端口

    即可。
    Goooogle
        5
    Goooogle  
       Jul 25, 2014 via Android
    上次帮人弄的毕业设计就是这个

    通过服务器转发比较好吧
    wangfeng3769
        6
    wangfeng3769  
    OP
       Jul 25, 2014
    @Goooogle
    有源码吗希望阅读一下
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5878 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 03:09 · PVG 11:09 · LAX 20:09 · JFK 23:09
    ♥ Do have faith in what you're doing.