【问题标题】:Threads/Multiple TCP clients and usermanagement线程/多个 TCP 客户端和用户管理
【发布时间】:2020-02-26 17:11:49
【问题描述】:

https://github.com/CatalinPrata/funcodetuts/tree/master/JavaTCPServer/src/ro/kazy/tcp

我如何通过使用 putty(或 android 客户端)连接到服务器来使用线程/多个客户端。如何返回连接的用户?

【问题讨论】:

    标签: android tcp server


    【解决方案1】:
    while (running) {
    System.out.println(getuser(socket));
    }
    

    这样的事情只有用户被添加到 UserManager 线程和类(..)中,并且该类有很多对象 + 接口。是的..什么是接口?是的.. 我会了解如何使用不同的用户管理器。

    【讨论】:

      猜你喜欢
      • 2012-09-26
      • 2016-04-27
      • 1970-01-01
      • 2016-09-26
      • 1970-01-01
      • 2012-08-27
      • 2021-04-09
      • 2016-06-05
      • 1970-01-01
      相关资源
      最近更新 更多