wangfeng3769
V2EX  ›  问与答

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

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

    Client:
    nc ServerIP 端口

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

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